2019-12-05 07:48:32 +01:00
|
|
|
CustomWizard::Engine.routes.draw do
|
|
|
|
get ':wizard_id' => 'wizard#index'
|
|
|
|
put ':wizard_id/skip' => 'wizard#skip'
|
|
|
|
get ':wizard_id/steps' => 'wizard#index'
|
|
|
|
get ':wizard_id/steps/:step_id' => 'wizard#index'
|
|
|
|
put ':wizard_id/steps/:step_id' => 'steps#update'
|
2020-08-11 09:12:02 +02:00
|
|
|
get 'items/search' => 'items#search'
|
2019-12-05 07:48:32 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
Discourse::Application.routes.append do
|
|
|
|
mount ::CustomWizard::Engine, at: 'w'
|
|
|
|
post 'wizard/authorization/callback' => "custom_wizard/authorization#callback"
|
|
|
|
|
|
|
|
scope module: 'custom_wizard', constraints: AdminConstraint.new do
|
|
|
|
get 'admin/wizards' => 'admin#index'
|
2020-04-13 14:17:22 +02:00
|
|
|
|
|
|
|
get 'admin/wizards/wizard' => 'admin_wizard#index'
|
|
|
|
get 'admin/wizards/wizard/create' => 'admin#index'
|
|
|
|
get 'admin/wizards/wizard/:wizard_id' => 'admin_wizard#show'
|
|
|
|
put 'admin/wizards/wizard/:wizard_id' => 'admin_wizard#save'
|
|
|
|
delete 'admin/wizards/wizard/:wizard_id' => 'admin_wizard#remove'
|
|
|
|
|
|
|
|
get 'admin/wizards/submissions' => 'admin_submissions#index'
|
|
|
|
get 'admin/wizards/submissions/:wizard_id' => 'admin_submissions#show'
|
|
|
|
get 'admin/wizards/submissions/:wizard_id/download' => 'admin_submissions#download'
|
|
|
|
|
2020-04-15 06:29:47 +02:00
|
|
|
get 'admin/wizards/api' => 'admin_api#list'
|
|
|
|
get 'admin/wizards/api/:name' => 'admin_api#find'
|
|
|
|
put 'admin/wizards/api/:name' => 'admin_api#save'
|
|
|
|
delete 'admin/wizards/api/:name' => 'admin_api#remove'
|
2020-04-22 15:03:18 +02:00
|
|
|
delete 'admin/wizards/api/:name/logs' => 'admin_api#clearlogs'
|
2020-04-15 06:29:47 +02:00
|
|
|
get 'admin/wizards/api/:name/redirect' => 'admin_api#redirect'
|
|
|
|
get 'admin/wizards/api/:name/authorize' => 'admin_api#authorize'
|
2020-04-13 14:17:22 +02:00
|
|
|
|
2020-04-15 02:46:44 +02:00
|
|
|
get 'admin/wizards/logs' => 'admin_logs#index'
|
|
|
|
|
2019-12-05 07:48:32 +01:00
|
|
|
get 'admin/wizards/transfer' => 'transfer#index'
|
|
|
|
get 'admin/wizards/transfer/export' => 'transfer#export'
|
|
|
|
post 'admin/wizards/transfer/import' => 'transfer#import'
|
|
|
|
end
|
|
|
|
end
|