added security and fix edit profile
This commit is contained in:
@@ -42,6 +42,11 @@ public class PostController {
|
||||
return service.getFeed();
|
||||
}
|
||||
|
||||
@GetMapping("/{id}")
|
||||
public List<PostResponse> getById(@PathVariable Long id) {
|
||||
return service.getById(id);
|
||||
}
|
||||
|
||||
@PutMapping(value = "/{id}", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
|
||||
public PostResponse update(
|
||||
@PathVariable Long id,
|
||||
|
||||
Reference in New Issue
Block a user