MCPcopy
hub / github.com/AstrBotDevs/AstrBot / dashboard_alias_plugin_extension

Function dashboard_alias_plugin_extension

tests/test_fastapi_v1_dashboard.py:757–765  ·  view source on GitHub ↗
(plugin_path: str, request: Request)

Source from the content-addressed store, hash-verified

755
756 @alias_api_route("/api/plug/{plugin_path:path}", methods=["GET", "POST"])
757 async def dashboard_alias_plugin_extension(plugin_path: str, request: Request):
758 return ok(
759 {
760 "plugin_path": plugin_path,
761 "method": request.method,
762 "payload": await _request_json(request, silent=True),
763 "alias_username": _alias_username(request),
764 }
765 )
766
767 @alias_get("/api/config/file/get")
768 async def dashboard_alias_config_file_get(request: Request):

Callers

nothing calls this directly

Calls 3

okFunction · 0.90
_request_jsonFunction · 0.85
_alias_usernameFunction · 0.85

Tested by

no test coverage detected