Skip to content

Commit

Permalink
fix: list url
Browse files Browse the repository at this point in the history
  • Loading branch information
pupilcc committed Jan 9, 2024
1 parent 2092494 commit 32736ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions middleware/jwt.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion web/ssl.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 32736ba

Please sign in to comment.