From 32736ba3e28f87dfd3c41c811d214de3717153c3 Mon Sep 17 00:00:00 2001 From: pupilcc Date: Tue, 9 Jan 2024 19:07:57 +0800 Subject: [PATCH] fix: list url --- middleware/jwt.go | 8 ++++---- web/ssl.go | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) 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"