feat: P3b 会话重命名 (PATCH + 双击编辑)
This commit is contained in:
@@ -46,4 +46,9 @@ export class SandboxController {
|
||||
async share(@Req() req: any, @Param('id', ParseIntPipe) id: number) {
|
||||
return this.sandboxService.generateShareToken(req.user.userId, id);
|
||||
}
|
||||
|
||||
@Patch('sessions/:id/rename')
|
||||
async rename(@Req() req: any, @Param('id', ParseIntPipe) id: number, @Body() body: { title: string }) {
|
||||
return this.sandboxService.renameSession(req.user.userId, id, body.title);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user