MCPcopy
hub / github.com/1Panel-dev/MaxKB / get

Method get

apps/oss/views/file.py:82–88  ·  view source on GitHub ↗
(self, request: Request, application_id: str)

Source from the content-addressed store, hash-verified

80 tags=[_('Chat')] # type: ignore
81 )
82 def get(self, request: Request, application_id: str):
83 if isinstance(request.auth, ChatAuth) and request.auth.application_id and str(
84 request.auth.application_id) != application_id:
85 return result.error(_('No permission'))
86 url = request.query_params.get('url')
87 result_data = get_url_content(url, application_id)
88 return result.success(result_data)

Callers 10

get_celery_statusFunction · 0.45
__init__.pyFile · 0.45
process_taskMethod · 0.45
write_thread_task_logMethod · 0.45
handle_task_endMethod · 0.45
on_app_readyFunction · 0.45
getMethod · 0.45
postMethod · 0.45

Calls 3

get_url_contentFunction · 0.90
errorMethod · 0.45
successMethod · 0.45

Tested by

no test coverage detected