MCPcopy
hub / github.com/PromtEngineer/localGPT / handle_get_index

Method handle_get_index

backend/server.py:791–799  ·  view source on GitHub ↗
(self, index_id: str)

Source from the content-addressed store, hash-verified

789 self.send_json_response({'error': str(e)}, status_code=500)
790
791 def handle_get_index(self, index_id: str):
792 try:
793 data = db.get_index(index_id)
794 if not data:
795 self.send_json_response({'error': 'Index not found'}, status_code=404)
796 return
797 self.send_json_response(data)
798 except Exception as e:
799 self.send_json_response({'error': str(e)}, status_code=500)
800
801 def handle_create_index(self):
802 try:

Callers 1

do_GETMethod · 0.95

Calls 2

send_json_responseMethod · 0.95
get_indexMethod · 0.80

Tested by

no test coverage detected