trabajo-afectivo/config/routes/core_workflow.rb

14 lines
718 B
Ruby
Raw Normal View History

2022-01-01 13:38:12 +00:00
# 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