Basic incoming AP support.

This commit is contained in:
Roger Braun 2017-12-11 10:37:22 +01:00
commit 5599c5920c
5 changed files with 82 additions and 3 deletions

View file

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