Add host-meta
This commit is contained in:
parent
d8b4d01e37
commit
8f63a831c4
3 changed files with 34 additions and 0 deletions
13
test/nulla_web/controllers/hostmeta_controller_test.exs
Normal file
13
test/nulla_web/controllers/hostmeta_controller_test.exs
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue