translation.rb 644 B

1234567891011
  1. Zammad::Application.routes.draw do
  2. api_path = Rails.configuration.api_path
  3. match api_path + '/translations', :to => 'translations#index', :via => :get
  4. match api_path + '/translations/:id', :to => 'translations#show', :via => :get
  5. match api_path + '/translations', :to => 'translations#create', :via => :post
  6. match api_path + '/translations/:id', :to => 'translations#update', :via => :put
  7. match api_path + '/translations/:id', :to => 'translations#destroy', :via => :delete
  8. match api_path + '/translations/lang/:locale', :to => 'translations#load', :via => :get
  9. end