add bone for file system #9
@@ -26,11 +26,9 @@ import java.nio.file.Paths;
|
||||
public class FileDownloadController {
|
||||
|
||||
private final FileEntityService fileEntityService;
|
||||
|
||||
private final AuthTokenRepository authTokenRepository;
|
||||
|
||||
/**
|
||||
* Скачать файл по ID FileEntity
|
||||
*/
|
||||
@GetMapping("/download/{fileId}")
|
||||
public ResponseEntity<Resource> downloadFile(
|
||||
@PathVariable String fileId,
|
||||
@@ -73,9 +71,6 @@ public class FileDownloadController {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Получить предпросмотр файла (если поддерживается)
|
||||
*/
|
||||
@GetMapping("/preview/{fileId}")
|
||||
public ResponseEntity<Resource> previewFile(
|
||||
@PathVariable String fileId,
|
||||
@@ -117,9 +112,6 @@ public class FileDownloadController {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Получить информацию о файле для фронтенда
|
||||
*/
|
||||
@GetMapping("/info/{fileId}")
|
||||
public ResponseEntity<FileEntityResponse> getFileInfo(
|
||||
@PathVariable String fileId,
|
||||
|
||||
Reference in New Issue
Block a user