chore: rename prefix to /go

This commit is contained in:
Steven committed 2022-11-13 09:17:43 +08:00
1 parent 7da715d3d5
commit eb162a0087
4 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -104,7 +104,7 @@ func aclMiddleware(s *Server, next echo.HandlerFunc) echo.HandlerFunc {
}
}
if common.HasPrefixes(path, "/o/:shortcutName", "/api/workspace/:workspaceName/shortcut/:shortcutName") && c.Request().Method == http.MethodGet {
if common.HasPrefixes(path, "/go/:shortcutName", "/api/workspace/:workspaceName/shortcut/:shortcutName") && c.Request().Method == http.MethodGet {
return next(c)
}