CHORE: update new endpoint link-table and remove /delete from storage-explorer api

This commit is contained in:
viniciusgadea
2026-01-13 14:36:43 -03:00
parent a2c7ce00db
commit 0ce3822300
@@ -348,20 +348,19 @@ export class StorageExplorerController {
);
}
@ApiOperation({ summary: 'Delete a file from storage' })
@Delete('storage/delete')
@ApiOperation({ summary: 'Link an existing file in storage to a table' })
@Post('storage/link-to-table')
@Authenticated()
@RequireAllPermissions(PERMISSIONS_GROUPS.STORAGE_EXPLORER.permissions.WRITE)
async deleteFile(
@Query('file_path') filePath: string,
async linkFileToTable(
@Body() body: any,
@User() user: RequestUser,
) {
return this.storageExplorerService.proxy(
'DELETE',
'/storage/delete',
'POST',
'/storage/link-to-table',
user,
undefined,
{ file_path: filePath },
body,
);
}