mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: fix request path (#2014)
This commit is contained in:
@@ -74,7 +74,7 @@ func audienceContains(audience jwt.ClaimStrings, token string) bool {
|
|||||||
// will try to generate new access token and refresh token.
|
// will try to generate new access token and refresh token.
|
||||||
func JWTMiddleware(server *APIV1Service, next echo.HandlerFunc, secret string) echo.HandlerFunc {
|
func JWTMiddleware(server *APIV1Service, next echo.HandlerFunc, secret string) echo.HandlerFunc {
|
||||||
return func(c echo.Context) error {
|
return func(c echo.Context) error {
|
||||||
path := c.Request().URL.Path
|
path := c.Path()
|
||||||
method := c.Request().Method
|
method := c.Request().Method
|
||||||
|
|
||||||
if server.defaultAuthSkipper(c) {
|
if server.defaultAuthSkipper(c) {
|
||||||
|
Reference in New Issue
Block a user