|
- <!--#include file="../core/autoload_core.asp" -->
-
- <%
- ' Define starter application routes
- router.AddRoute "GET", "/home", "HomeController", "Index"
- router.AddRoute "GET", "/", "HomeController", "Index"
- router.AddRoute "GET", "", "HomeController", "Index"
- router.AddRoute "GET", "/404", "ErrorController", "NotFound"
-
- ' API docs (Swagger UI)
- router.AddRoute "GET", "/api/docs", "DocsController", "Index"
-
- ' Dispatch the request (resolves route and executes controller action).
- ' MVC() is called with parentheses: AxonASP cannot use "MVC.Method args" on a parameterless function.
- MVC().DispatchRequest Request.ServerVariables("REQUEST_METHOD"), GetRequestPath()
- %>
|