Commit bd8f0bb2 authored by nanahira's avatar nanahira

controller

parent 984f68cb
Pipeline #2277 passed with stages
in 36 seconds
......@@ -67,4 +67,22 @@ export class AppController {
async updateActivity(@Body() body: any) {
return await this.appService.updateActivity(body);
}
@Post('votes')
async updateVotes(@Body() body: any, @Res() res: express.Response) {
const code = await this.appService.updateVotes(body);
res.status(code).json({ code });
}
@Post('voteStatus')
async updateVoteStatus(@Body() body: any, @Res() res: express.Response) {
const code = await this.appService.updateVoteStatus(body);
res.status(code).json({ code });
}
@Post('submitVote')
async submitVote(@Body() body: any, @Res() res: express.Response) {
const code = await this.appService.submitVote(body);
res.status(code).json({ code });
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment