trabajo-afectivo/config/routes/text_module.rb
2022-01-01 14:38:12 +01:00

15 lines
854 B
Ruby

# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
Zammad::Application.routes.draw do
api_path = Rails.configuration.api_path
# text_modules
match api_path + '/text_modules/import_example', to: 'text_modules#import_example', via: :get
match api_path + '/text_modules/import', to: 'text_modules#import_start', via: :post
match api_path + '/text_modules', to: 'text_modules#index', via: :get
match api_path + '/text_modules/:id', to: 'text_modules#show', via: :get
match api_path + '/text_modules', to: 'text_modules#create', via: :post
match api_path + '/text_modules/:id', to: 'text_modules#update', via: :put
match api_path + '/text_modules/:id', to: 'text_modules#destroy', via: :delete
end