1
0
mirror of https://github.com/projekteuler/projekteuler.git synced 2026-01-27 02:28:50 +01:00

Add redirects, update test types

This commit is contained in:
2017-11-26 14:32:18 +01:00
parent c69eb788ef
commit b5697eff56
7 changed files with 39 additions and 27 deletions

View File

@@ -3,16 +3,21 @@ Rails.application.routes.draw do
get 'about/info'
get 'about/copyright'
get 'about/legal'
get 'about/roman_numerals'
devise_for :admins, skip: :registrations
get 'about=:page', to: redirect('/about/%{page}')
get 'problem=:id', to: redirect('/problems/%{id}')
resources :problems, only: [:index, :show] do
resources :translations, only: [:new, :create]
end
devise_for :admins, skip: :registrations
namespace :admin do
get '', to: 'dashboard#index', as: '/'
post '/update_problem_count', to: 'dashboard#update_problem_count'
get '', to: 'dashboard#index', as: 'dashboard_index'
post '/update_problem_count', to: 'dashboard#update_problem_count', as: 'dashboard_update_problem_count'
resources :translations, only: [:index, :show]
end