added find post by id on map

This commit is contained in:
SlimusMinus
2026-08-27 01:31:50 +03:00
parent c85a321f24
commit ddebb5cf93
2 changed files with 17 additions and 0 deletions

View File

@@ -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);
}
}