diff --git a/main.go b/main.go index 89b34e2..0866145 100644 --- a/main.go +++ b/main.go @@ -55,7 +55,9 @@ func main() { fmt.Println("Default user 'boxuser' created successfully!") // Create the router - router := mux.NewRouter() + baseRouter := mux.NewRouter() + + router := baseRouter.PathPrefix("/api/v1").Subrouter() // Define your routes router.Handle("/login", http.HandlerFunc(LoginHandler)).Methods("POST", "OPTIONS")