translation.rb 1.3 KB

123456789101112131415161718192021
  1. # Copyright (C) 2012-2024 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/lang/:locale', to: 'translations#lang', via: :get
  7. match api_path + '/translations/customized', to: 'translations#index_customized', via: :get
  8. match api_path + '/translations/search/:locale', to: 'translations#search', via: :get
  9. match api_path + '/translations/reset', to: 'translations#reset', via: :post
  10. match api_path + '/translations/upsert', to: 'translations#upsert', via: :post
  11. match api_path + '/translations', to: 'translations#index', via: :get
  12. match api_path + '/translations/:id', to: 'translations#show', via: :get
  13. match api_path + '/translations', to: 'translations#create', via: :post
  14. match api_path + '/translations/:id', to: 'translations#update', via: :put
  15. match api_path + '/translations/:id', to: 'translations#destroy', via: :delete
  16. match api_path + '/translations/reset/:id', to: 'translations#reset_item', via: :put
  17. end