fix: db-studio prefix fixes

This commit is contained in:
allanice001
2025-11-11 04:01:57 +00:00
parent b4c108a5be
commit ea4c625269
3 changed files with 25 additions and 22 deletions

View File

@@ -219,7 +219,7 @@ func NewRouter(db *gorm.DB, jobs *bg.Jobs, studio http.Handler) http.Handler {
adminOnly := httpmiddleware.RequirePlatformAdmin()
gr.Use(authUser)
gr.Use(adminOnly)
gr.Mount("/db-studio", http.StripPrefix("/db-studio", studio))
gr.Mount("/db-studio", studio)
})
}

View File

@@ -35,6 +35,7 @@ func StartPgweb(dbURL, host, port string, readonly bool, user, pass string) (*Pg
"--url", dbURL,
"--bind", host,
"--listen", port,
"--prefix", "/db-studio",
"--skip-open",
}
if readonly {