2022-01-01 13:38:12 +00:00
|
|
|
# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
|
2021-08-25 12:24:42 +00:00
|
|
|
|
|
|
|
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
|