added find post by id on map
This commit is contained in:
@@ -84,4 +84,10 @@ public class PostController {
|
||||
return service.getCities();
|
||||
}
|
||||
|
||||
@GetMapping("/detail/{postId}")
|
||||
public PostResponse getPostOnMapById(@PathVariable Long postId) {
|
||||
log.info("get post on map by id {}", postId);
|
||||
return service.getPostOnMapById(postId);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user