Consolidated ASP Classic MVC framework from best components
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
673B

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

Powered by TurnKey Linux.