mirror of
https://github.com/projekteuler/projekteuler.git
synced 2026-01-27 02:28:50 +01:00
Add ability to accept or decline translations
This commit is contained in:
@@ -26,6 +26,10 @@ Rails.application.routes.draw do
|
||||
namespace :admin do
|
||||
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]
|
||||
resources :translations, only: [:index] do
|
||||
get '', to: 'translations#show', as: ''
|
||||
post 'accept', to: 'translations#accept'
|
||||
post 'decline', to: 'translations#decline'
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user