Skip to content

Instantly share code, notes, and snippets.

@aaronjensen
Created February 4, 2010 02:06
Show Gist options
  • Save aaronjensen/294296 to your computer and use it in GitHub Desktop.
Save aaronjensen/294296 to your computer and use it in GitHub Desktop.
routes.MapRouteTo<DiagnosticsController>(Urls.root.debug, x => x.Index());
routes.MapRouteTo<DiagnosticsController>(Urls.root.diagnostics.ok, x => x.Ok());
routes.MapRouteTo<DiagnosticsController>(Urls.root.diagnostics.raise, x => x.Raise());
routes.MapRouteTo<LoginController>(Urls.root.login, x => x.Login(null));
routes.MapRouteTo<LoginController>(Urls.root.logout, x => x.Logout());
routes.MapRouteTo<StyleguideController>(Urls.root.styleguide, x => x.Styleguide());
GET /
GET|POST /logout
GET|POST /login
GET /admin
GET|POST /admin/[action]
GET|POST /[controller]/[action]
GET|POST /[controller]/[action]/[id]
GET /debug
GET /styleguide
GET /diagnostics/ok
GET /diagnostics/raise
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment