Filter out MIX_ENV from route list and add a test
This commit is contained in:
parent
8ad1613717
commit
6b87dfad5d
2 changed files with 35 additions and 1 deletions
|
|
@ -74,4 +74,32 @@ defmodule Pleroma.Web.Plugs.FrontendStaticPlugTest do
|
|||
assert %Plug.Conn{status: :success} = get(conn, url)
|
||||
end
|
||||
end
|
||||
|
||||
test "api routes are detected correctly" do
|
||||
expected_routes = [
|
||||
"api",
|
||||
"main",
|
||||
"ostatus_subscribe",
|
||||
"oauth",
|
||||
"objects",
|
||||
"activities",
|
||||
"notice",
|
||||
"users",
|
||||
"tags",
|
||||
"mailer",
|
||||
"inbox",
|
||||
"relay",
|
||||
"internal",
|
||||
".well-known",
|
||||
"nodeinfo",
|
||||
"web",
|
||||
"auth",
|
||||
"embed",
|
||||
"proxy",
|
||||
"user_exists",
|
||||
"check_password"
|
||||
]
|
||||
|
||||
assert expected_routes == Pleroma.Web.get_api_routes()
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue