(@Ctx() ctx: Context)
| 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) { |
no test coverage detected