MCPcopy
hub / github.com/youzan/zan-proxy / toggle

Method toggle

src/core/manager/controller/host.ts:31–35  ·  view source on GitHub ↗
(@Ctx() ctx: Context)

Source from the content-addressed store, hash-verified

29
30 @Post('/toggle')
31 public async toggle(@Ctx() ctx: Context) {
32 const { body } = ctx.request;
33 await this.hostService.toggleHost(body.name, body.enable);
34 return true;
35 }
36
37 @Get('/get')
38 public async get(@Ctx() ctx: Context) {

Callers 3

rFunction · 0.45
oFunction · 0.45
aFunction · 0.45

Calls 1

toggleHostMethod · 0.80

Tested by

no test coverage detected