translation.rb 979 B

12345678910111213141516
  1. Zammad::Application.routes.draw do
  2. api_path = Rails.configuration.api_path
  3. match api_path + '/translations/push', to: 'translations#push', via: :put
  4. match api_path + '/translations/sync/:locale', to: 'translations#sync', via: :get
  5. match api_path + '/translations/reset', to: 'translations#reset', via: :post
  6. match api_path + '/translations/lang/:locale', to: 'translations#lang', via: :get
  7. match api_path + '/translations/admin/lang/:locale', to: 'translations#admin', via: :get
  8. match api_path + '/translations', to: 'translations#index', via: :get
  9. match api_path + '/translations/:id', to: 'translations#show', via: :get
  10. match api_path + '/translations', to: 'translations#create', via: :post
  11. match api_path + '/translations/:id', to: 'translations#update', via: :put
  12. match api_path + '/translations/:id', to: 'translations#destroy', via: :delete
  13. end