chore: update memo stats api (#387)

This commit is contained in:
boojack
2022-10-31 20:57:07 +08:00
committed by GitHub
parent 40d5686031
commit ef5492074e
6 changed files with 42 additions and 36 deletions

View File

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