Consolidated ASP Classic MVC framework from best components
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

17 рядки
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.