diff --git a/middleware/jwt.go b/middleware/jwt.go index 846195a..b913feb 100644 --- a/middleware/jwt.go +++ b/middleware/jwt.go @@ -3,10 +3,10 @@ package middleware import "github.com/labstack/echo/v4" var skipTokenPaths = map[string]bool{ - "/": true, - "/health": true, - "/login": true, - "/ssl/dl/:uuid": true, + "/": true, + "/health": true, + "/login": true, + "/dl/:uuid": true, } func Skip(c echo.Context) bool { diff --git a/web/ssl.go b/web/ssl.go index aa3aaec..ee21651 100644 --- a/web/ssl.go +++ b/web/ssl.go @@ -67,7 +67,7 @@ func downloadHead(c echo.Context) error { func list(c echo.Context) error { certs := service.GetCerts() dm := os.Getenv("DOMAIN") - url := dm + "/ssl/dl/" + url := dm + "/dl/" list := make([]domain.CertDTO, 0, len(certs)) for _, cert := range certs { certLink := url + cert.Id + ".crt"