trabajo-afectivo/config/routes/macro.rb

14 lines
524 B
Ruby
Raw Permalink Normal View History

# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
2015-10-15 13:23:41 +00:00
Zammad::Application.routes.draw do
api_path = Rails.configuration.api_path
# macros
match api_path + '/macros', to: 'macros#index', via: :get
match api_path + '/macros/:id', to: 'macros#show', via: :get
match api_path + '/macros', to: 'macros#create', via: :post
match api_path + '/macros/:id', to: 'macros#update', via: :put
match api_path + '/macros/:id', to: 'macros#destroy', via: :delete
end