Skip to content

Commit

Permalink
feat: update
Browse files Browse the repository at this point in the history
  • Loading branch information
Allen Zhang committed Dec 18, 2023
1 parent aa129cd commit 6ae1896
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion packages/canyon-backend/src/upload/upload.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@ export class UploadController {
@HttpCode(200)
test(@Query() q, @Body() b) {
console.log(q, b);
// TODO: 需要一个唯一id在post和put之间传递
return `http://localhost:8080/upload/v4
http://localhost:8080/upload/v4`;
http://localhost:8080/upload/v4?query=1`;
}
@Put('v4')
@HttpCode(200)
@UseInterceptors(RawBodyMiddleware)
test1(@Query() q, @Body() buffer: Buffer) {
console.log(q);
fs.writeFileSync('./test.txt', buffer);
return 'test';
}
Expand Down
4 changes: 2 additions & 2 deletions packages/canyon-cli/src/helpers/web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ export function populateBuildParams(

export function getPackage(source: string): string {
if (source) {
return `${source}-uploader-${version}`
return `${source}-canyon-cli-${version}`
} else {
return `uploader-${version}`
return `canyon-cli-${version}`
}
}

Expand Down

0 comments on commit 6ae1896

Please sign in to comment.