fix(httpapi): phase 1 compliance — ERR-01, SEC-04, CDN client, scheduler docs

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Denozordec
2026-05-20 00:21:16 +07:00
co-authored by Cursor
parent aff27e8f7b
commit 1dd713514c
8 changed files with 67 additions and 19 deletions
+2
View File
@@ -24,6 +24,7 @@ type Server struct {
apiKeys []apiKeyRecord
insecureDev bool
corsOrigins []string
cdnHTTP *http.Client
mux *http.ServeMux
}
@@ -67,6 +68,7 @@ func New(opts Options) (*Server, error) {
apiKeys: parseAPIKeysSpec(opts.APIKeys),
insecureDev: opts.InsecureDev && opts.SeedDemo,
corsOrigins: parseCORSOrigins(opts.CORSAllowedOrigins),
cdnHTTP: NewCDNHTTPClient(),
}
s.mux = http.NewServeMux()
s.registerRoutes()