trabajo-afectivo/config/routes/import_freshdesk.rb

13 lines
628 B
Ruby
Raw Normal View History

2022-01-01 13:38:12 +00:00
# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
2021-05-25 12:30:12 +00:00
Zammad::Application.routes.draw do
api_path = Rails.configuration.api_path
# import freshdesk
match api_path + '/import/freshdesk/url_check', to: 'import_freshdesk#url_check', via: :post
match api_path + '/import/freshdesk/credentials_check', to: 'import_freshdesk#credentials_check', via: :post
match api_path + '/import/freshdesk/import_start', to: 'import_freshdesk#import_start', via: :post
match api_path + '/import/freshdesk/import_status', to: 'import_freshdesk#import_status', via: :get
end