Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

46 rindas
1.4KB

  1. <%
  2. ' DocsController: interactive API docs (Swagger UI) for the JSON API. The spec is public/api/openapi.json.
  3. Class DocsController_Class
  4. Public Property Get useLayout()
  5. useLayout = True
  6. End Property
  7. Public Property Let useLayout(v)
  8. End Property
  9. Public Property Get Title()
  10. Title = "API docs"
  11. End Property
  12. Public Sub Index()
  13. %>
  14. <!--#include file="../views/Docs/index.asp" -->
  15. <%
  16. End Sub
  17. ' Static action dispatch (AxonASP mishandles runtime-built Eval/Execute calls),
  18. ' called through <Name>Controller_Invoke at the bottom of this file.
  19. Public Sub Invoke(actionName, args)
  20. Select Case LCase(actionName)
  21. Case "index" : Index
  22. Case Else
  23. Err.Raise 438, "DocsController_Class", "Action '" & actionName & "' not found"
  24. End Select
  25. End Sub
  26. End Class
  27. Dim DocsController_Class__Singleton
  28. Function DocsController()
  29. If IsEmpty(DocsController_Class__Singleton) Then
  30. Set DocsController_Class__Singleton = New DocsController_Class
  31. End If
  32. Set DocsController = DocsController_Class__Singleton
  33. End Function
  34. ' Global entry point used by MVC_InvokeAction via GetRef. A separate call site per controller
  35. ' avoids AxonASP binding a shared call site to the first controller's Invoke.
  36. Sub DocsController_Invoke(actionName, args)
  37. DocsController().Invoke actionName, args
  38. End Sub
  39. %>

Powered by TurnKey Linux.