Add UserController

This commit is contained in:
Mirai Kumiko 2025-05-30 14:16:51 +02:00
parent f61444cffa
commit 178c2bf72e
Signed by: miraikumiko
GPG key ID: 3F178B1B5E0CB278
5 changed files with 81 additions and 2 deletions

View file

@ -2,7 +2,7 @@ defmodule NullaWeb.Router do
use NullaWeb, :router
pipeline :browser do
plug :accepts, ["html"]
plug :accepts, ["html", "activity+json", "ld+json"]
plug :fetch_session
plug :fetch_live_flash
plug :put_root_layout, html: {NullaWeb.Layouts, :root}
@ -18,7 +18,7 @@ defmodule NullaWeb.Router do
pipe_through :browser
get "/", PageController, :home
get "/@:username", PageController, :profile
get "/@:username", UserController, :show
end
# Other scopes may use custom stacks.