Add host-meta

This commit is contained in:
Mirai Kumiko 2025-06-19 08:45:06 +02:00
parent d8b4d01e37
commit 8f63a831c4
Signed by: miraikumiko
GPG key ID: 3F178B1B5E0CB278
3 changed files with 34 additions and 0 deletions

View file

@ -0,0 +1,13 @@
defmodule NullaWeb.HostmetaControllerTest do
use NullaWeb.ConnCase
describe "GET /.well-known/host-meta" do
test "returns Nodeinfo JSON index", %{conn: conn} do
conn =
conn
|> get(~p"/.well-known/host-meta")
assert response(conn, 200) =~ "localhost"
end
end
end