private static void InitializeRouter() { router = new Router(); router.AddRoute <LoadStore>("GET", "/load", Load, false); router.AddRoute <SaveStore>("POST", "/Save", Save, false); router.AddRoute <AuditLog>("POST", "/SaveLogEntry", SaveLogEntry, false); router.AddRoute("GET", "/", () => RouteResponse.Page("Hello World", "text/html"), false); }
private static void InitializeRouter() { router = new Router(); router.AddRoute <RequestCommon>("GET", "/Load", Load, false); router.AddRoute <RequestCommon>("POST", "/BeginTransaction", BeginTransaction, false); router.AddRoute <RequestCommon>("POST", "/CommitTransaction", CommitTransaction, false); router.AddRoute <RequestCommon>("POST", "/RollbackTransaction", RollbackTransaction, false); router.AddRoute <AuditLogEntries>("POST", "/ImportChanges", ImportAuditLog, false); router.AddRoute <EntityData>("POST", "/ImportEntity", ImportEntity, false); router.AddRoute <AuditLog>("POST", "/SaveLogEntry", SaveLogEntry, false); router.AddRoute("GET", "/", () => RouteResponse.Page("Hello World", "text/html"), false); }