MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / apiError

Function apiError

panel/src/app/middleware/permission.ts:42–45  ·  view source on GitHub ↗
(ctx: Koa.ParameterizedContext)

Source from the content-addressed store, hash-verified

40}
41
42function apiError(ctx: Koa.ParameterizedContext) {
43 ctx.status = 403;
44 ctx.body = `${$t("TXT_CODE_permission.apiError")}`;
45}
46
47function tooFast(ctx: Koa.ParameterizedContext) {
48 ctx.status = 500;

Callers 1

permission.tsFile · 0.85

Calls 1

$tFunction · 0.90

Tested by

no test coverage detected