diff --git a/main.go b/main.go index 4936fc0..1eefb7c 100644 --- a/main.go +++ b/main.go @@ -18,7 +18,7 @@ func main() { var subrouter *mux.Router if config.Prefix != "" { - r.PathPrefix(config.Prefix).Subrouter() + subrouter = r.PathPrefix(config.Prefix).Subrouter() } else { subrouter = r }