Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

chore: fix request path (#2014)

boojack04b7a26c03ea
diff --git a/api/v1/jwt.go b/api/v1/jwt.go
index 83db1986f..64de6da3b 100644
--- a/api/v1/jwt.go
+++ b/api/v1/jwt.go
@@ -74,7 +74,7 @@ func audienceContains(audience jwt.ClaimStrings, token string) bool {
// will try to generate new access token and refresh token.
func JWTMiddleware(server *APIV1Service, next echo.HandlerFunc, secret string) echo.HandlerFunc {
return func(c echo.Context) error {
- path := c.Request().URL.Path
+ path := c.Path()
method := c.Request().Method
if server.defaultAuthSkipper(c) {