Sha256: 22704bbdfb3f3d62a599daafe3f57a6e874060b58f16efa905658c35029000ef

Contents?: true

Size: 1.05 KB

Versions: 5

Compression:

Stored size: 1.05 KB

Contents

Lit::Engine.routes.draw do


  if Lit.api_enabled
    namespace :api do
      namespace :v1 do
        get '/last_change' => 'localizations#last_change'
        resources :locales, :only=>[:index]
        resources :localization_keys, :only=>[:index]
        resources :localizations, :only=>[:index] do
          get 'last_change', :on=>:collection
        end
      end
    end
  end
  resources :locales, :only=>[:index, :destroy] do
    put :hide, :on=>:member
  end
  resources :localization_keys, :only=>[:index, :destroy] do
    member do
      get :star
    end
    collection do
      get :starred
    end
    resources :localizations, :only=>[:edit, :update] do
      member do
        get :previous_versions
      end
    end
  end
  resources :sources do
    member do
      get :synchronize
      put :touch
    end
    resources :incomming_localizations, :only=>[:index, :destroy] do
      member do
        get :accept
      end
      collection do
        get :accept_all
        post :reject_all
      end
    end
  end

  root :to=>"dashboard#index"
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
lit-0.2.6 config/routes.rb
lit-0.2.5 config/routes.rb
lit-0.2.4 config/routes.rb
lit-0.2.3 config/routes.rb
lit-0.2.2 config/routes.rb