diff --git a/router.go b/router.go index 80f8e0f..0bee885 100644 --- a/router.go +++ b/router.go @@ -33,7 +33,7 @@ func (ro *Router) AddRequiredRoutes(requiredRoutes []string) { return } for _, pattern := range requiredRoutes { - ro.routes[Route{pattern: pattern, required: true}] = &server{} + ro.routes[Route{pattern: pattern, required: true}] = nil } }