diff --git a/grellyddotcom.go b/grellyddotcom.go index 68538b4..cf66522 100644 --- a/grellyddotcom.go +++ b/grellyddotcom.go @@ -13,6 +13,7 @@ import ( "github.com/grellyd/filelogging/globallogger" "github.com/grellyd/filelogging/state" "github.com/grellyd/grellyddotcom/config" + "github.com/grellyd/grellyddotcom/handlers" "github.com/grellyd/grellyddotcom/router" ) @@ -150,7 +151,7 @@ func registerRoutes() (*router.Router, error) { // if err != nil { // return nil, fmt.Errorf("unable to register email: %w", err) // } - err = r.Register("/certs/", "^/certs/([a-zA-Z0-9_]*).html$", handlers.File) + err := r.Register("/certs/", "^/certs/([a-zA-Z0-9_]*).html$", handlers.File) if err != nil { return nil, fmt.Errorf("unable to register certs: %w", err) }