Merge remote-tracking branch 'pleroma/develop' into manifest
[akkoma] / test / pleroma / web / plugs / frontend_static_plug_test.exs
index 9d59d3f8ea8ee3d30e212d212cfae91776fd144b..93d0ab469a22b9c320c451d276b066e27066e4c6 100644 (file)
@@ -76,6 +76,8 @@ defmodule Pleroma.Web.Plugs.FrontendStaticPlugTest do
   end
 
   test "api routes are detected correctly" do
+    # If this test fails we have probably added something
+    # new that should be in /api/ instead
     expected_routes = [
       "api",
       "main",
@@ -92,14 +94,13 @@ defmodule Pleroma.Web.Plugs.FrontendStaticPlugTest do
       "internal",
       ".well-known",
       "nodeinfo",
-      "web",
-      "auth",
-      "embed",
+      "manifest.json",
       "proxy",
+      "test",
       "user_exists",
       "check_password"
     ]
 
-    assert expected_routes == Pleroma.Web.get_api_routes()
+    assert expected_routes == Pleroma.Web.Router.get_api_routes()
   end
 end