RemoteStorage OAuth dialog
This commit is contained in:
@@ -54,6 +54,12 @@ Rails.application.routes.draw do
|
||||
end
|
||||
end
|
||||
|
||||
namespace :rs do
|
||||
resource :oauth, only: [:new, :create], path_names: { new: ':useraddress' },
|
||||
controller: 'oauth', constraints: { useraddress: /[^\/]+/}
|
||||
get 'oauth/token/:id/launch_app' => 'oauth#launch_app', as: :launch_app
|
||||
end
|
||||
|
||||
authenticate :user, ->(user) { user.is_admin? } do
|
||||
mount Sidekiq::Web => '/sidekiq'
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user