Update
This commit is contained in:
parent
b596606c14
commit
58049c93d4
8 changed files with 115 additions and 149 deletions
|
@ -20,12 +20,31 @@ defmodule NullaWeb.Router do
|
|||
get "/.well-known/webfinger", WebfingerController, :index
|
||||
get "/.well-known/nodeinfo", NodeinfoController, :index
|
||||
get "/nodeinfo/2.0", NodeinfoController, :show
|
||||
post "/inbox", InboxController, :inbox
|
||||
|
||||
get "/@:username", UserController, :show
|
||||
get "/@:username/outbox", OutboxController, :show
|
||||
get "/@:username/following", FollowController, :following
|
||||
get "/@:username/followers", FollowController, :followers
|
||||
get "/@:username/:note_id", NoteController, :show
|
||||
scope "/auth" do
|
||||
get "/sign_in", AuthController, :sign_in
|
||||
post "/sign_out", AuthController, :sign_out
|
||||
get "/sign_up", AuthController, :sign_up
|
||||
end
|
||||
|
||||
scope "/users/:username" do
|
||||
get "/", UserController, :show
|
||||
get "/following", FollowController, :following
|
||||
get "/followers", FollowController, :followers
|
||||
post "/inbox", InboxController, :inbox
|
||||
get "/outbox", OutboxController, :outbox
|
||||
get "/statuses/:id", NoteController, :show
|
||||
end
|
||||
|
||||
scope "/@:username" do
|
||||
get "/", UserController, :show
|
||||
get "/following", FollowController, :following
|
||||
get "/followers", FollowController, :followers
|
||||
post "/inbox", InboxController, :inbox
|
||||
get "/outbox", OutboxController, :outbox
|
||||
get "/:id", NoteController, :show
|
||||
end
|
||||
end
|
||||
|
||||
# Other scopes may use custom stacks.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue