Add endpoints to fetch uploaded images.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package org.codiki.account;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
@@ -111,4 +112,9 @@ public class AccountController {
|
||||
.header(HttpHeaders.CONTENT_DISPOSITION, StringUtils.concat("attachment; filename=\"", avatarFile.getFilename(), "\""))
|
||||
.body(avatarFile);
|
||||
}
|
||||
|
||||
@GetMapping("/myImages")
|
||||
public List<String> myImages() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user