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

Function post

dashboard/src/api/v1.ts:1327–1337  ·  view source on GitHub ↗
(
    pluginPath: string,
    data?: unknown,
    config?: AxiosRequestConfig,
  )

Source from the content-addressed store, hash-verified

1325 );
1326 },
1327 post<T = any>(
1328 pluginPath: string,
1329 data?: unknown,
1330 config?: AxiosRequestConfig,
1331 ) {
1332 return apiV1Client.post<ApiEnvelope<T>>(
1333 `/plugins/extensions/${pluginExtensionPath(pluginPath)}`,
1334 data,
1335 config,
1336 );
1337 },
1338 put<T = any>(pluginPath: string, data?: unknown, config?: AxiosRequestConfig) {
1339 return apiV1Client.put<ApiEnvelope<T>>(
1340 `/plugins/extensions/${pluginExtensionPath(pluginPath)}`,

Callers

nothing calls this directly

Calls 2

pluginExtensionPathFunction · 0.85
postMethod · 0.45

Tested by

no test coverage detected