2021-06-01 12:20:20 +00:00
|
|
|
# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
|
|
|
|
|
2013-08-21 19:16:42 +00:00
|
|
|
Zammad::Application.routes.draw do
|
|
|
|
api_path = Rails.configuration.api_path
|
2013-08-06 22:10:28 +00:00
|
|
|
|
2015-06-28 00:16:47 +00:00
|
|
|
match api_path + '/translations/push', to: 'translations#push', via: :put
|
2015-09-21 12:20:36 +00:00
|
|
|
match api_path + '/translations/sync/:locale', to: 'translations#sync', via: :get
|
2015-06-28 00:16:47 +00:00
|
|
|
match api_path + '/translations/reset', to: 'translations#reset', via: :post
|
2015-11-18 13:27:46 +00:00
|
|
|
match api_path + '/translations/lang/:locale', to: 'translations#lang', via: :get
|
2015-06-28 00:16:47 +00:00
|
|
|
match api_path + '/translations/admin/lang/:locale', to: 'translations#admin', via: :get
|
|
|
|
|
2015-04-27 13:42:53 +00:00
|
|
|
match api_path + '/translations', to: 'translations#index', via: :get
|
|
|
|
match api_path + '/translations/:id', to: 'translations#show', via: :get
|
|
|
|
match api_path + '/translations', to: 'translations#create', via: :post
|
|
|
|
match api_path + '/translations/:id', to: 'translations#update', via: :put
|
|
|
|
match api_path + '/translations/:id', to: 'translations#destroy', via: :delete
|
2013-08-21 19:16:42 +00:00
|
|
|
|
2015-04-27 14:15:29 +00:00
|
|
|
end
|