Add protocol handler. Handle follow intents (#4511)
* Add protocol handler. Handle follow intents * Add share intent * Improve code in intents controller * Adjust share form CSS
This commit is contained in:
parent
96e9ed13de
commit
3c6503038e
12 changed files with 167 additions and 3 deletions
|
@ -20,6 +20,7 @@ Rails.application.routes.draw do
|
|||
get '.well-known/host-meta', to: 'well_known/host_meta#show', as: :host_meta, defaults: { format: 'xml' }
|
||||
get '.well-known/webfinger', to: 'well_known/webfinger#show', as: :webfinger
|
||||
get 'manifest', to: 'manifests#show', defaults: { format: 'json' }
|
||||
get 'intent', to: 'intents#show'
|
||||
|
||||
devise_for :users, path: 'auth', controllers: {
|
||||
sessions: 'auth/sessions',
|
||||
|
@ -86,12 +87,13 @@ Rails.application.routes.draw do
|
|||
|
||||
# Remote follow
|
||||
resource :authorize_follow, only: [:show, :create]
|
||||
resource :share, only: [:show, :create]
|
||||
|
||||
namespace :admin do
|
||||
resources :subscriptions, only: [:index]
|
||||
resources :domain_blocks, only: [:index, :new, :create, :show, :destroy]
|
||||
resource :settings, only: [:edit, :update]
|
||||
|
||||
|
||||
resources :instances, only: [:index] do
|
||||
collection do
|
||||
post :resubscribe
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue