Subrouter fix

This commit is contained in:
2022-01-31 09:56:46 +01:00
parent b6f3358db0
commit 1f97caae17

View File

@@ -18,7 +18,7 @@ func main() {
var subrouter *mux.Router var subrouter *mux.Router
if config.Prefix != "" { if config.Prefix != "" {
r.PathPrefix(config.Prefix).Subrouter() subrouter = r.PathPrefix(config.Prefix).Subrouter()
} else { } else {
subrouter = r subrouter = r
} }