MCPcopy Create free account
hub / github.com/SuperJJ007/CSSwitch / do_GET

Method do_GET

proxy/csswitch_proxy.py:774–783  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

772 return False
773
774 def do_GET(self):
775 if not self._auth_ok():
776 return
777 if self.path.startswith("/v1/models"):
778 code, body = build_models_response()
779 self._send_json(code, body)
780 elif self.path.startswith("/health"):
781 self._send_json(200, {"status": "ok", "provider": PROV_NAME})
782 else:
783 self._send_json(404, {"type": "error", "error": {"type": "not_found_error", "message": self.path}})
784
785 def do_POST(self):
786 if not self._auth_ok():

Callers

nothing calls this directly

Calls 3

_auth_okMethod · 0.95
_send_jsonMethod · 0.95
build_models_responseFunction · 0.85

Tested by

no test coverage detected