Sha256: 02864d283ece5fcc6d38b8482fe40f4f5438a243fa4558722d9292d5e602a1f8

Contents?: true

Size: 517 Bytes

Versions: 1

Compression:

Stored size: 517 Bytes

Contents

Papercat::Engine.routes.draw do
  devise_for :users, class_name: "Papercat::User", module: :devise
  authenticate do
    namespace :api do
      resources :documents
      resources :templates
      resources :javascripts
      resources :stylesheets
      resources :pages
      #resources :images
      post 'images' => 'images#create'
    end
    get 'admin' => 'application'
    root to: 'application#admin', as: :authenticated_root, path: '/admin'
  end
  get ':path' => 'pages#show'
  root to: 'pages#show'
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
papercat-0.0.2 config/routes.rb