|
- <%
- ' DocsController: interactive API docs (Swagger UI) for the JSON API. The spec is public/api/openapi.json.
- Class DocsController_Class
- Public Property Get useLayout()
- useLayout = True
- End Property
-
- Public Property Let useLayout(v)
- End Property
-
- Public Property Get Title()
- Title = "API docs"
- End Property
-
- Public Sub Index()
- %>
- <!--#include file="../views/Docs/index.asp" -->
- <%
- End Sub
- ' Static action dispatch (AxonASP mishandles runtime-built Eval/Execute calls),
- ' called through <Name>Controller_Invoke at the bottom of this file.
- Public Sub Invoke(actionName, args)
- Select Case LCase(actionName)
- Case "index" : Index
- Case Else
- Err.Raise 438, "DocsController_Class", "Action '" & actionName & "' not found"
- End Select
- End Sub
-
- End Class
-
- Dim DocsController_Class__Singleton
- Function DocsController()
- If IsEmpty(DocsController_Class__Singleton) Then
- Set DocsController_Class__Singleton = New DocsController_Class
- End If
- Set DocsController = DocsController_Class__Singleton
- End Function
-
- ' Global entry point used by MVC_InvokeAction via GetRef. A separate call site per controller
- ' avoids AxonASP binding a shared call site to the first controller's Invoke.
- Sub DocsController_Invoke(actionName, args)
- DocsController().Invoke actionName, args
- End Sub
- %>
|