Skip to content

Commit

Permalink
feat: update
Browse files Browse the repository at this point in the history
  • Loading branch information
肖恩 committed Dec 17, 2023
1 parent 8cd8308 commit 08b9f01
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
1 change: 0 additions & 1 deletion packages/canyon-backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
"prisma": "^5.6.0",
"reflect-metadata": "^0.1.13",
"rxjs": "^7.8.1",
"typeorm": "^0.3.17"
},
"devDependencies": {
"@nestjs/cli": "^10.2.1",
Expand Down
13 changes: 9 additions & 4 deletions packages/canyon-backend/src/upload/upload.controller.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
import { Controller, Post, Put } from '@nestjs/common';
import { Controller, Post, Put, HttpCode, Query, Body } from '@nestjs/common';

@Controller('upload')
export class UploadController {
constructor() {}
@Post('v4')
test() {
return 'test';
@HttpCode(200)
test(@Query() q, @Body() b) {
console.log(q, b);
return `http://localhost:8080/upload/v4
http://localhost:8080/upload/v4`;
}
@Put('v4')
test1() {
@HttpCode(200)
test1(@Query() q, @Body() b) {
console.log('test', q, b);
return 'test';
}
}

0 comments on commit 08b9f01

Please sign in to comment.