feat(memoh): unify embedded runtime serving and release binaries

This commit is contained in:
Ran
2026-02-24 19:39:01 +08:00
parent d6914f99ab
commit ffda558d24
18 changed files with 1564 additions and 4 deletions
+4 -1
View File
@@ -72,7 +72,10 @@ func (s *Server) Stop(ctx context.Context) error {
}
func shouldSkipJWT(path string) bool {
if path == "/ping" || path == "/health" || path == "/api/swagger.json" || path == "/auth/login" {
if path == "/" || path == "/ping" || path == "/health" || path == "/api/swagger.json" || path == "/auth/login" {
return true
}
if strings.HasPrefix(path, "/assets/") {
return true
}
if strings.HasPrefix(path, "/api/docs") {