chore: update visitor view buttons

This commit is contained in:
boojack
2022-07-09 12:00:26 +08:00
parent 7418d2965d
commit 6a8c559e8c
10 changed files with 47 additions and 53 deletions

View File

@ -55,7 +55,7 @@ func removeUserSession(c echo.Context) error {
func BasicAuthMiddleware(s *Server, next echo.HandlerFunc) echo.HandlerFunc {
return func(c echo.Context) error {
// Skip auth for some paths.
if common.HasPrefixes(c.Path(), "/api/auth", "/api/ping", "/api/status", "/api/user/:id/") {
if common.HasPrefixes(c.Path(), "/api/auth", "/api/ping", "/api/status", "/api/user/:userId") {
return next(c)
}