<!--#include file="..\core\autoload_core.asp" -->

<%
	' Admin site routes
	router.AddRoute "GET", "/", "AdminOrdersController", "Index"
	router.AddRoute "GET", "", "AdminOrdersController", "Index"
	router.AddRoute "GET", "/orders", "AdminOrdersController", "Index"
	router.AddRoute "GET", "/404", "ErrorController", "NotFound"

	' Dispatch the request (resolves route and executes controller action)
	MVC.DispatchRequest Request.ServerVariables("REQUEST_METHOD"), _
	                    TrimQueryParams(Request.ServerVariables("HTTP_X_ORIGINAL_URL"))
%>
