Clean up `activitypub` module route scope near instance actor (#29579)
parent
65e8349980
commit
79e7590578
|
@ -77,8 +77,10 @@ Rails.application.routes.draw do
|
||||||
get 'remote_interaction_helper', to: 'remote_interaction_helper#index'
|
get 'remote_interaction_helper', to: 'remote_interaction_helper#index'
|
||||||
|
|
||||||
resource :instance_actor, path: 'actor', only: [:show] do
|
resource :instance_actor, path: 'actor', only: [:show] do
|
||||||
resource :inbox, only: [:create], module: :activitypub
|
scope module: :activitypub do
|
||||||
resource :outbox, only: [:show], module: :activitypub
|
resource :inbox, only: [:create]
|
||||||
|
resource :outbox, only: [:show]
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
get '/invite/:invite_code', constraints: ->(req) { req.format == :json }, to: 'api/v1/invites#show'
|
get '/invite/:invite_code', constraints: ->(req) { req.format == :json }, to: 'api/v1/invites#show'
|
||||||
|
|
Loading…
Reference in New Issue