Sha256: 1255537b279c55c0f838c8c331725530900e72583546c1c91f78bd26e24426e9
Contents?: true
Size: 1.68 KB
Versions: 5
Compression:
Stored size: 1.68 KB
Contents
Fae::Engine.routes.draw do mount Judge::Engine => '/judge' root 'pages#home' devise_for :users, class_name: "Fae::User", module: :devise, skip: [:sessions] as :user do get 'login' => '/devise/sessions#new', as: :new_user_session post 'login' => '/devise/sessions#create', as: :user_session get 'logout' => '/devise/sessions#destroy', as: :destroy_user_session end resources :users get 'settings' => 'users#settings', as: 'settings' get 'help' => 'pages#help', as: 'help' get 'activity' => 'pages#activity_log', as: 'activity_log' post 'activity/filter' => 'pages#activity_log_filter', as: 'activity_log_filter' get 'first_user' => 'setup#first_user' post 'first_user' => 'setup#create_first_user' # AJAX delete 'files/:id/delete_file' => 'files#delete_file', as: :delete_file delete 'images/:id/delete_image' => 'images#delete_image', as: :delete_image post 'toggle/:object/:id/:attr', to: 'utilities#toggle', as: 'toggle' post 'sort/:object', to: 'utilities#sort', as: 'sort' post 'language_preference/:language', to: 'utilities#language_preference' post 'search/:query', to: 'utilities#global_search' post 'search', to: 'utilities#global_search' post 'html_embedded_image', to: 'images#create_html_embedded' get '/root' => 'options#edit', as: :option match '/root' => 'options#update', via: [:put, :patch] get 'pages' => '/admin/content_blocks#index', as: 'pages' get 'content_blocks/:slug' => '/admin/content_blocks#edit', as: 'edit_content_block' match 'content_blocks/:slug/update' => '/admin/content_blocks#update', via: [:put, :patch], as: 'update_content_block' # catch all 404 match "*path" => 'pages#error404', via: [:get, :post] end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
fae-rails-2.1.0 | config/routes.rb |
fae-rails-2.0.0 | config/routes.rb |
fae-rails-1.7.1 | config/routes.rb |
fae-rails-1.7.0 | config/routes.rb |
fae-rails-1.6.0 | config/routes.rb |