Use POST for retry state-changing endpoints

This commit is contained in:
Tor Wingalen
2026-05-15 23:49:54 +02:00
parent be11bb94d7
commit 5dc428b148
2 changed files with 3 additions and 2 deletions
@@ -40,7 +40,7 @@ export class PlaylistController {
return this.service.remove(id);
}
@Get('retry/:id')
@Post('retry/:id')
retryFailedOfPlaylist(
@Param('id', ParseIntPipe) id: number,
): Promise<void> {
+2 -1
View File
@@ -2,6 +2,7 @@ import {
Controller,
Delete,
Get,
Post,
NotFoundException,
Param,
ParseIntPipe,
@@ -66,7 +67,7 @@ export class TrackController {
return this.service.remove(id);
}
@Get('retry/:id')
@Post('retry/:id')
retry(
@Param('id', ParseIntPipe) id: number,
): Promise<void> {