mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-24 01:39:08 +00:00
CHORE: update new endpoint link-table and remove /delete from storage-explorer api
This commit is contained in:
@@ -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,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user