schema update and api /v1/schema

This commit is contained in:
yusing
2025-01-06 00:49:29 +08:00
parent 6034908a95
commit 29f85db022
4 changed files with 29 additions and 16 deletions

View File

@@ -37,6 +37,7 @@ func NewHandler() http.Handler {
mux.HandleFunc("PUT", "/v1/file/{filename...}", auth.RequireAuth(v1.SetFileContent))
mux.HandleFunc("GET", "/v1/stats", v1.Stats)
mux.HandleFunc("GET", "/v1/stats/ws", v1.StatsWS)
mux.HandleFunc("GET", "/v1/schema/{filename...}", v1.GetSchemaFile)
return mux
}