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
|
|
|
|
2015-12-17 11:49:40 +00:00
|
|
|
Zammad::Application.routes.draw do
|
|
|
|
api_path = Rails.configuration.api_path
|
|
|
|
|
|
|
|
# CRUD
|
|
|
|
match api_path + '/external_credentials', to: 'external_credentials#index', via: :get
|
|
|
|
match api_path + '/external_credentials/:id', to: 'external_credentials#show', via: :get
|
|
|
|
match api_path + '/external_credentials', to: 'external_credentials#create', via: :post
|
|
|
|
match api_path + '/external_credentials/:id', to: 'external_credentials#update', via: :put
|
|
|
|
match api_path + '/external_credentials/:id', to: 'external_credentials#destroy', via: :delete
|
|
|
|
|
|
|
|
# callback URL
|
2015-12-21 00:48:49 +00:00
|
|
|
match api_path + '/external_credentials/:provider/app_verify', to: 'external_credentials#app_verify', via: :post
|
2015-12-17 11:49:40 +00:00
|
|
|
match api_path + '/external_credentials/:provider/link_account', to: 'external_credentials#link_account', via: :get
|
|
|
|
match api_path + '/external_credentials/:provider/callback', to: 'external_credentials#callback', via: :get
|
|
|
|
|
|
|
|
end
|