Add nodeinfo
This commit is contained in:
parent
eecdf86849
commit
4a890a39f4
4 changed files with 83 additions and 9 deletions
|
@ -11,17 +11,15 @@ defmodule NullaWeb.Router do
|
|||
end
|
||||
|
||||
pipeline :api do
|
||||
plug :accepts, ["activity+json", "ld+json"]
|
||||
|
||||
post "/inbox", InboxController, :receive
|
||||
post "/@:username/inbox", InboxController, :receive
|
||||
get "/@:username/outbox", OutboxController, :index
|
||||
plug :accepts, ["json"]
|
||||
end
|
||||
|
||||
scope "/", NullaWeb do
|
||||
pipe_through :browser
|
||||
|
||||
get "/.well-known/webfinger", WebfingerController, :show
|
||||
get "/.well-known/webfinger", WebfingerController, :index
|
||||
get "/.well-known/nodeinfo", NodeinfoController, :index
|
||||
get "/nodeinfo/2.0", NodeinfoController, :show
|
||||
|
||||
get "/@:username", UserController, :show
|
||||
get "/@:username/following", FollowController, :following
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue