zan-proxy
Version:
18 lines (16 loc) • 431 B
text/typescript
import { Inject, Service } from 'typedi';
import { ConfigureService } from '../../services';
()
export class ConfigController {
()
private confService: ConfigureService;
public regist(router) {
router.post('/configure/savefile', async ctx => {
const userId = ctx.userId;
await this.confService.setConfigure(userId, ctx.request.body);
ctx.body = {
code: 0,
};
});
}
}