Implement RS auth revocation
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
Râu Cao
2023-11-19 18:49:17 +01:00
parent 8ec2a6d7e4
commit 713e91a720
6 changed files with 49 additions and 7 deletions

View File

@@ -19,10 +19,10 @@ Rails.application.routes.draw do
resources :invitations, only: ['index', 'show', 'create', 'destroy']
namespace :services do
get 'storage', to: 'remotestorage#dashboard'
resource :chat, only: [:show], controller: 'chat'
resource :mastodon, only: [:show], controller: 'mastodon'
resources :lightning, only: [:index] do
collection do
get 'transactions'
@@ -30,7 +30,13 @@ Rails.application.routes.draw do
end
end
resource :mastodon, only: [:show], controller: 'mastodon'
resource :storage, controller: 'remotestorage', only: [:show] do
resources :rs_auths, only: [:destroy] do
member do
get 'revoke', to: 'rs_auths#destroy'
end
end
end
end
resources :settings, param: 'section', only: ['index', 'show', 'update'] do