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

<%
	' Define starter application routes
	router.AddRoute "GET", "/home", "HomeController", "Index"
	router.AddRoute "GET", "/", "HomeController", "Index"
	router.AddRoute "GET", "", "HomeController", "Index"
	router.AddRoute "GET", "/404", "ErrorController", "NotFound"

	router.AddRoute "GET",  "/request-order", "RequestOrderController", "Index"
	router.AddRoute "POST", "/request-order", "RequestOrderController", "Create"
	router.AddRoute "GET",  "/order/continue", "OrderController", "Continue"
	router.AddRoute "POST", "/order/submit", "OrderApiController", "SubmitOrderDetails"

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