Commit 72963a50 authored by nanahira's avatar nanahira

why 200? srvpro bug

parent c9a0e3ee
Pipeline #3897 passed with stages
in 4 minutes and 24 seconds
...@@ -4,6 +4,7 @@ import { ...@@ -4,6 +4,7 @@ import {
Controller, Controller,
ForbiddenException, ForbiddenException,
Get, Get,
HttpCode,
HttpException, HttpException,
InternalServerErrorException, InternalServerErrorException,
NotFoundException, NotFoundException,
...@@ -39,6 +40,7 @@ export class AppController { ...@@ -39,6 +40,7 @@ export class AppController {
) {} ) {}
@Post('score') @Post('score')
@HttpCode(200)
async postScore(@Body() body: any, @Body('accesskey') accessKey) { async postScore(@Body() body: any, @Body('accesskey') accessKey) {
if (accessKey !== config.accessKey) { if (accessKey !== config.accessKey) {
throw new ForbiddenException({ throw new ForbiddenException({
......
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