Add nodeinfo

This commit is contained in:
Mirai Kumiko 2025-06-12 23:22:42 +02:00
parent eecdf86849
commit 4a890a39f4
Signed by: miraikumiko
GPG key ID: 3F178B1B5E0CB278
4 changed files with 83 additions and 9 deletions

View file

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