We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49882e2 commit 5d2c21dCopy full SHA for 5d2c21d
file-storage/src/main/java/com/safalifter/filestorage/controller/StorageController.java
@@ -24,6 +24,13 @@ public ResponseEntity<?> downloadImageFromFileSystem(@PathVariable String id) {
24
.contentType(MediaType.valueOf("image/png"))
25
.body(storageService.downloadImageFromFileSystem(id));
26
}
27
+ @GetMapping("/download/{id}")
28
+ public ResponseEntity<?> xzxzx(@PathVariable String id) {
29
+ return ResponseEntity.ok()
30
+ .contentType(MediaType.valueOf("image/png"))
31
+ .body(storageService.downloadImageFromFileSystem(id));
32
+ }
33
+
34
35
@DeleteMapping("/delete/{id}")
36
public ResponseEntity<Void> deleteImageFromFileSystem(@PathVariable String id) {
0 commit comments