Skip to content

Instantly share code, notes, and snippets.

@benmoss
Last active December 23, 2015 06:39
Show Gist options
  • Save benmoss/6595202 to your computer and use it in GitHub Desktop.
Save benmoss/6595202 to your computer and use it in GitHub Desktop.
router = ->
@resource 'campaign_pics', {path: '/campaigns'}, ->
@route 'new'
@resource 'campaign_pic', {path: '/campaigns/:campaign_pic_id'}, ->
@route 'edit'
@resource 'email_templates', {path: '/templates'}, ->
@route 'new', {path: '/new'}
@route 'export', {path: ':email_template_id/export'}
@resource 'rules_pics', ->
@resource 'rules_pic', {path: ':rules_pic_id'}, ->
@resource 'collection', {path: '/collections/:collection_id'}, ->
@route 'import'
@resource 'asset', {path: '/assets/:asset_id'}
@resource 'countdown_pics', ->
@route 'new'
@route 'edit', {path: ':countdown_pic_id'}
@resource 'webcrop_pics', ->
@route 'new'
@route 'edit', {path: ':webcrop_pic_id'}
@resource 'static_pics', ->
@route 'edit', {path: ':static_pic_id'}
export default router
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment