Skip to content

Commit 5d2c21d

Browse files
committed
commit devxsb#1
1 parent 49882e2 commit 5d2c21d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

file-storage/src/main/java/com/safalifter/filestorage/controller/StorageController.java

+7
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ public ResponseEntity<?> downloadImageFromFileSystem(@PathVariable String id) {
2424
.contentType(MediaType.valueOf("image/png"))
2525
.body(storageService.downloadImageFromFileSystem(id));
2626
}
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+
2734

2835
@DeleteMapping("/delete/{id}")
2936
public ResponseEntity<Void> deleteImageFromFileSystem(@PathVariable String id) {

0 commit comments

Comments
 (0)