0
0
Fork 0

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:
Eugen Rochko 2017-08-14 04:53:31 +02:00 committed by GitHub
parent 96e9ed13de
commit 3c6503038e
12 changed files with 167 additions and 3 deletions

View file

@ -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