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

13 lines
718 B
Ruby

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