Basic incoming AP support.
This commit is contained in:
parent
25118aeef7
commit
5599c5920c
5 changed files with 82 additions and 3 deletions
|
|
@ -199,7 +199,7 @@ defmodule Pleroma.Web.Router do
|
|||
end
|
||||
|
||||
pipeline :ostatus do
|
||||
plug :accepts, ["xml", "atom", "html"]
|
||||
plug :accepts, ["xml", "atom", "html", "activity+json"]
|
||||
end
|
||||
|
||||
scope "/", Pleroma.Web do
|
||||
|
|
@ -217,6 +217,14 @@ defmodule Pleroma.Web.Router do
|
|||
post "/push/subscriptions/:id", Websub.WebsubController, :websub_incoming
|
||||
end
|
||||
|
||||
pipeline :activitypub do
|
||||
plug :accepts, ["activity+json"]
|
||||
end
|
||||
|
||||
scope "/", Pleroma.Web.ActivityPub do
|
||||
post "/users/:nickname/inbox", ActivityPubController, :inbox
|
||||
end
|
||||
|
||||
scope "/.well-known", Pleroma.Web do
|
||||
pipe_through :well_known
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue