Sha256: f5dc3ba09adb51d41f715933f5829747dfca1ef842d68f811ee43919ee5e4144

Contents?: true

Size: 372 Bytes

Versions: 4

Compression:

Stored size: 372 Bytes

Contents

# frozen_string_literal: true

Scrapbook::Engine.routes.draw do
  # TODO: Future plans
  # scope path: '/.editor' do
  #   resources :pages, id: /.+/, only: %i[new create edit update]
  # end

  root 'pages#show'

  get '.raw/pages(/*id)', to: 'pages#raw', constraints: {id: /.*/}, as: :raw_page
  get '*id', to: 'pages#show', constraints: {id: /.*/}, as: :short_page
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
scrapbook-0.3.2 config/routes.rb
scrapbook-0.3.1 config/routes.rb
scrapbook-0.3.0 config/routes.rb
scrapbook-0.2.2 config/routes.rb