From b0f51d88c781e0f52c64e18a25e7a4525e9763df Mon Sep 17 00:00:00 2001 From: some Date: Wed, 9 Oct 2024 11:57:42 -0400 Subject: [PATCH] Change endpoints variable to endpoint --- router.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/router.go b/router.go index 78ff0d6..1a3fb08 100644 --- a/router.go +++ b/router.go @@ -23,18 +23,18 @@ type Router struct { } func NewRouter(r *router.Router, logger log.Logger, endpointOverride ...Endpoint) (ro *Router) { - var endpoints Endpoint + var endpoint Endpoint if r == nil { r = router.NewRouter(nil, nil) } if len(endpointOverride) == 1 { - endpoints = endpointOverride[0] + endpoint = endpointOverride[0] } else { - endpoints = endpointDefault + endpoint = endpointDefault } r.AddRequiredRoutes([]string{ - endpoints.CallbackEndpoint, - endpoints.TokenEndpoint, + endpoint.CallbackEndpoint, + endpoint.TokenEndpoint, }) if logger == nil { logger = log.NewPlainLogger() @@ -42,7 +42,7 @@ func NewRouter(r *router.Router, logger log.Logger, endpointOverride ...Endpoint return &Router{ Router: r, Logger: logger, - Endpoint: endpoints, + Endpoint: endpoint, } }