From 1f97caae1796e8f92ff052713f1edbb6cb2db5f8 Mon Sep 17 00:00:00 2001 From: bytedream Date: Mon, 31 Jan 2022 09:56:46 +0100 Subject: [PATCH] Subrouter fix --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }