Sha256: 4b0210f9ef0103716a7420460bff6a8f5c92b87c33ba8e01b8448fc766464d84

Contents?: true

Size: 921 Bytes

Versions: 3

Compression:

Stored size: 921 Bytes

Contents

TranslationCenter::Engine.routes.draw do
  
  resources :translations do
    post :vote
    post :unvote
    post :accept
    post :unaccept
    collection do
      get :search
    end
  end

  resources :translation_keys, except: :create do
    post :update_translation
    get :translations
    collection do 
      get :search
    end
  end

  resources :categories  do
    get :more_keys
  end

  get '/dashboard' => 'center#dashboard', as: :dashboard
  get '/update_language' => 'center#update_language'
  get '/search_activity' => 'center#search_activity', as: :search_activity
  post '/manage_translations' => 'center#manage', as: :manage_translations

  root to: 'categories#index'

  # set the language from and to for the user
  match "/set_language_from" => 'center#set_language_from', as: :set_lang_from, :via => :get
  match "/set_language_to" => 'center#set_language_to', as: :set_lang_to, :via => :get
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
afalkear_translation_center-1.8.4 config/routes.rb
afalkear_translation_center-1.8.3 config/routes.rb
afalkear_translation_center-1.8.2 config/routes.rb