fix: reserve /oauth for social sign-in
The SPA fallback no longer answers /oauth and the paths below it with index.html, so golem15.sociallogin's start and provider callback routes reach the backend; /oauthy is still a client route.
This commit is contained in:
@@ -37,9 +37,10 @@ const (
|
||||
const defaultAdminPath = "/bmadmin"
|
||||
|
||||
// reservedPrefixes are the path prefixes the student app never answers: the
|
||||
// APIs of the plugins and the public uploads. The admin path is added from
|
||||
// the configuration.
|
||||
var reservedPrefixes = []string{"/_user", "/_bm", "/_quizzes", "/_presentations", "/api", "/storage"}
|
||||
// APIs of the plugins, the public uploads and /oauth (the social sign-in
|
||||
// routes of golem15.sociallogin and their provider callbacks). The admin
|
||||
// path is added from the configuration.
|
||||
var reservedPrefixes = []string{"/_user", "/_bm", "/_quizzes", "/_presentations", "/api", "/storage", "/oauth"}
|
||||
|
||||
// errMissingIndex reports a tree without index.html (an unbuilt tree).
|
||||
var errMissingIndex = errors.New("jz.bm: public/index.html missing; run the frontend build (cd frontend && npm ci && npm run build)")
|
||||
|
||||
Reference in New Issue
Block a user