Sha256: e7fe5112e0d0a5f592b4b6e7e22b70dc428ad113dd3eca57e671b44d0b87d5e8
Contents?: true
Size: 944 Bytes
Versions: 7
Compression:
Stored size: 944 Bytes
Contents
Ecrire::Application.routes.draw do if defined?(Ecrire::Theme::Engine) resource :session, only: [:new, :create, :destroy] namespace :admin do root 'posts#index' resource :profile resources :tags do collection do get :unused end end resources :posts do put :toggle collection do get 'help', controller: :posts, action: :help get :drafts get :published end resources :tags, only: [:index, :create], module: 'posts' do put :toggle end resources :titles, only: [:index, :update, :create], module: 'posts' do end resource :image, shallow: true end namespace :configurations do resource :images, only: [:show, :create] end end mount Ecrire::Theme::Engine => '/', as: 'theme' else mount Ecrire::Onboarding::Engine => '/' end end
Version data entries
7 entries across 7 versions & 1 rubygems