14 lines
538 B
Ruby
14 lines
538 B
Ruby
|
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
|
||
|
|
||
|
# oauth2 provider routes
|
||
|
use_doorkeeper do
|
||
|
skip_controllers :applications, :authorized_applications
|
||
|
end
|
||
|
end
|