Skip to content

Instantly share code, notes, and snippets.

@arbales
Created May 1, 2012 23:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arbales/2572404 to your computer and use it in GitHub Desktop.
Save arbales/2572404 to your computer and use it in GitHub Desktop.
class ApplicationRouter extends Backbone.Router
ApplicationRouter.FEATURE_SPLASH_CURRENT_VERSION = 1
routes:
'' : '_index'
':workspaceId' : '_index'
':workspaceId/:type' : '_list'
':workspaceId/:type/:id' : '_detail'
':workspaceId/:type/:typeId/tasks/:taskId' : '_detail'
':workspaceId/projects/:projectId/activity' : '_activity'
':workspaceId/projects/:projectId/attachments': '_attachments'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment