test(02-01): add failing test for the presentations prefix
- /_presentations must be a plain 404, not the SPA shell - A router without the presentations plugin has no public document route
This commit is contained in:
@@ -113,6 +113,7 @@ func TestStaticReservedPaths(t *testing.T) {
|
||||
h := handler(t, "/bmadmin")
|
||||
for _, p := range []string{
|
||||
"/_user", "/_user/", "/_user/api/v1/nope", "/_bm/api/v1/nope", "/_quizzes/api/v1/nope",
|
||||
"/_presentations", "/_presentations/api/v1/nope",
|
||||
"/bmadmin", "/bmadmin/", "/bmadmin/login", "/storage/app/uploads/public/x.pdf",
|
||||
"/storage", "/_user/../_user/x", "//_bm/api",
|
||||
} {
|
||||
|
||||
Reference in New Issue
Block a user