chore: update memo detail access handler

This commit is contained in:
Steven
2022-09-21 19:31:02 +08:00
parent 2acd5d4af2
commit 63468dbaf3
5 changed files with 49 additions and 38 deletions

View File

@@ -104,7 +104,7 @@ func aclMiddleware(s *Server, next echo.HandlerFunc) echo.HandlerFunc {
}
}
if common.HasPrefixes(path, "/api/memo/all") && c.Request().Method == http.MethodGet {
if common.HasPrefixes(path, "/api/memo/all", "/api/memo/:memoId") && c.Request().Method == http.MethodGet {
return next(c)
}