Consolidated ASP Classic MVC framework from best components
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

17 linhas
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.