translation.rb 1.0 KB

123456789101112131415161718
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. Zammad::Application.routes.draw do
  3. api_path = Rails.configuration.api_path
  4. match api_path + '/translations/push', to: 'translations#push', via: :put
  5. match api_path + '/translations/sync/:locale', to: 'translations#sync', via: :get
  6. match api_path + '/translations/reset', to: 'translations#reset', via: :post
  7. match api_path + '/translations/lang/:locale', to: 'translations#lang', via: :get
  8. match api_path + '/translations/admin/lang/:locale', to: 'translations#admin', via: :get
  9. match api_path + '/translations', to: 'translations#index', via: :get
  10. match api_path + '/translations/:id', to: 'translations#show', via: :get
  11. match api_path + '/translations', to: 'translations#create', via: :post
  12. match api_path + '/translations/:id', to: 'translations#update', via: :put
  13. match api_path + '/translations/:id', to: 'translations#destroy', via: :delete
  14. end