trabajo-afectivo/config/routes/external_credentials.rb

19 lines
1.1 KiB
Ruby
Raw Permalink Normal View History

# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
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
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