Add TODO comments for future improvements

Inserted TODO comments to signal necessary future additions like DTOs, patches, and CRUD operations associated with machine file types. These placeholders will help guide the development of these features.
This commit is contained in:
Mathis H (Avnyr) 2024-10-08 13:38:07 +02:00
parent e931822010
commit d171c72dcf
Signed by: Mathis
GPG Key ID: DD9E0666A747D126

View File

@ -24,6 +24,7 @@ export class MachinesController {
@Query("search", new DefaultValuePipe("")) search: string, @Query("search", new DefaultValuePipe("")) search: string,
) {} ) {}
//TODO DTO
@UseGuards(AdminGuard) @UseGuards(AdminGuard)
@Post("new") @Post("new")
async newMachine() {} async newMachine() {}
@ -34,6 +35,8 @@ export class MachinesController {
//TODO Patch //TODO Patch
//TODO CRUD fileType associated to machine
@Get(":machineId/files") @Get(":machineId/files")
async getFilesForMachine( async getFilesForMachine(
@Query("limit", new DefaultValuePipe(20), ParseIntPipe) limit: number, @Query("limit", new DefaultValuePipe(20), ParseIntPipe) limit: number,