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); return this.service.remove(id);
} }
@Get('retry/:id') @Post('retry/:id')
retryFailedOfPlaylist( retryFailedOfPlaylist(
@Param('id', ParseIntPipe) id: number, @Param('id', ParseIntPipe) id: number,
): Promise<void> { ): Promise<void> {
+2 -1
View File
@@ -2,6 +2,7 @@ import {
Controller, Controller,
Delete, Delete,
Get, Get,
Post,
NotFoundException, NotFoundException,
Param, Param,
ParseIntPipe, ParseIntPipe,
@@ -66,7 +67,7 @@ export class TrackController {
return this.service.remove(id); return this.service.remove(id);
} }
@Get('retry/:id') @Post('retry/:id')
retry( retry(
@Param('id', ParseIntPipe) id: number, @Param('id', ParseIntPipe) id: number,
): Promise<void> { ): Promise<void> {