generated from coulomb/repo-seed
Harden registry API and schema validation
This commit is contained in:
@@ -39,6 +39,8 @@ class RegistryHandler(BaseHTTPRequestHandler):
|
||||
parts = _parts(path)
|
||||
if path == "/health":
|
||||
return HTTPStatus.OK, {"status": "ok"}
|
||||
if path == "/status":
|
||||
return HTTPStatus.OK, self.store.status()
|
||||
if parts == ["repositories"]:
|
||||
return HTTPStatus.OK, self.store.list_repositories()
|
||||
if len(parts) == 3 and parts[0] == "repositories" and parts[2] == "inventory":
|
||||
|
||||
Reference in New Issue
Block a user