2022-01-01 13:38:12 +00:00
|
|
|
# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
|
2021-06-01 12:20:20 +00:00
|
|
|
|
2016-11-01 16:16:04 +00:00
|
|
|
Zammad::Application.routes.draw do
|
|
|
|
api_path = Rails.configuration.api_path
|
|
|
|
|
|
|
|
match api_path + '/applications', to: 'applications#index', via: :get
|
|
|
|
match api_path + '/applications/:id', to: 'applications#show', via: :get
|
|
|
|
match api_path + '/applications', to: 'applications#create', via: :post
|
|
|
|
match api_path + '/applications/:id', to: 'applications#update', via: :put
|
2020-11-17 14:04:47 +00:00
|
|
|
match api_path + '/applications/:id', to: 'applications#destroy', via: :delete
|
2016-11-13 21:16:17 +00:00
|
|
|
match api_path + '/applications/token', to: 'applications#token', via: :post
|
2016-11-01 16:16:04 +00:00
|
|
|
|
|
|
|
# oauth2 provider routes
|
|
|
|
use_doorkeeper do
|
|
|
|
skip_controllers :applications, :authorized_applications
|
|
|
|
end
|
|
|
|
end
|