Sha256: eba716ed8741a0133339f6408165b558af6bb9dcbdf377321258c7755e867b9a

Contents?: true

Size: 714 Bytes

Versions: 2

Compression:

Stored size: 714 Bytes

Contents

pageflow.SidebarRouter = Backbone.Marionette.AppRouter.extend({
  appRoutes: {
    'pages/:id': 'page',
    'pages/:id/:tab': 'page',
    'chapters/:id': 'chapter',

    'files/image_files?page=:page_id&attribute=:attribute': 'imageFiles',
    'files/video_files?page=:page_id&attribute=:attribute': 'videoFiles',
    'files/audio_files?page=:page_id&attribute=:attribute': 'audioFiles',

    'files/image_files': 'imageFiles',
    'files/video_files': 'videoFiles',
    'files/audio_files': 'audioFiles',

    'files?page=:page_id&attribute=:attribute': 'files',
    'files': 'files',

    'confirmable_files': 'confirmableFiles',

    'meta_data': 'metaData',
    'publish': 'publish',

    '.*': 'index'
  }
});

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pageflow-0.2.1 app/assets/javascripts/pageflow/editor/routers/sidebar_router.js
pageflow-0.2.0 app/assets/javascripts/pageflow/editor/routers/sidebar_router.js