This commit is contained in:
Mirai Kumiko 2025-06-21 10:24:40 +02:00
parent f88c247a5c
commit 577e273a1b
Signed by: miraikumiko
GPG key ID: 3F178B1B5E0CB278
5 changed files with 35 additions and 3 deletions

View file

@ -1,3 +1,15 @@
defmodule NullaWeb.PageHTML do
use NullaWeb, :html
embed_templates "templates/page/*"
end
defmodule NullaWeb.AuthHTML do
use NullaWeb, :html
embed_templates "templates/auth/*"
end
defmodule NullaWeb.ActorHTML do
use NullaWeb, :html

View file

@ -0,0 +1,7 @@
defmodule NullaWeb.PageController do
use NullaWeb, :controller
def home(conn, _params) do
render(conn, :home, layout: false)
end
end

View file

@ -17,6 +17,8 @@ defmodule NullaWeb.Router do
scope "/", NullaWeb do
pipe_through :browser
get "/", PageController, :home
get "/.well-known/host-meta", HostmetaController, :index
get "/.well-known/webfinger", WebfingerController, :index
get "/.well-known/nodeinfo", NodeinfoController, :index
@ -24,9 +26,11 @@ defmodule NullaWeb.Router do
post "/inbox", InboxController, :inbox
scope "/auth" do
get "/sign_in", AuthController, :sign_in
post "/sign_out", AuthController, :sign_out
get "/sign_up", AuthController, :sign_up
get "/sign_in", AuthController, :sign_in_view
post "/sign_in", AuthController, :sign_in
delete "/sign_out", AuthController, :sign_out
get "/sign_up", AuthController, :sign_up_view
post "/sign_up", AuthController, :sign_up
end
scope "/users/:username" do