ASP Classic blog framework - BrainOrdure
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

36 Zeilen
1.8KB

  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. ' Categories routes
  9. router.AddRoute "GET", "/categories", "CategoriesController", "Index"
  10. router.AddRoute "GET", "/categories/new", "CategoriesController", "New"
  11. router.AddRoute "POST", "/categories", "CategoriesController", "Create"
  12. router.AddRoute "GET", "/categories/{id}", "CategoriesController", "Show"
  13. router.AddRoute "GET", "/categories/{id}/edit", "CategoriesController", "Edit"
  14. router.AddRoute "POST", "/categories/{id}", "CategoriesController", "Update"
  15. router.AddRoute "POST", "/categories/{id}/delete","CategoriesController","Delete"
  16. ' Posts routes
  17. router.AddRoute "GET", "/posts", "PostsController", "Index"
  18. router.AddRoute "GET", "/posts/new", "PostsController", "New"
  19. router.AddRoute "POST", "/posts", "PostsController", "Create"
  20. router.AddRoute "GET", "/posts/{slug}", "PostsController", "Show"
  21. router.AddRoute "GET", "/posts/{id}/edit", "PostsController", "Edit"
  22. router.AddRoute "POST", "/posts/{id}", "PostsController", "Update"
  23. router.AddRoute "POST", "/posts/{id}/delete", "PostsController", "Delete"
  24. ' Comments routes
  25. router.AddRoute "POST", "/comments", "CommentsController", "Create"
  26. router.AddRoute "POST", "/comments/{id}/delete", "CommentsController", "Delete"
  27. ' Dispatch the request (resolves route and executes controller action)
  28. MVC.DispatchRequest Request.ServerVariables("REQUEST_METHOD"), _
  29. TrimQueryParams(Request.ServerVariables("HTTP_X_ORIGINAL_URL"))
  30. %>

Powered by TurnKey Linux.