forked from Olympic/NTO-2025-Backend-TeamTask
14
This commit is contained in:
@@ -52,8 +52,8 @@ public class BookingController {
|
|||||||
@PostMapping("/{code}/book")
|
@PostMapping("/{code}/book")
|
||||||
public ResponseEntity<?> createBooking(
|
public ResponseEntity<?> createBooking(
|
||||||
@PathVariable String code,
|
@PathVariable String code,
|
||||||
@RequestParam Long placeId,
|
@RequestBody Long placeId,
|
||||||
@RequestParam String date
|
@RequestBody String date
|
||||||
) {
|
) {
|
||||||
try {
|
try {
|
||||||
if (placeId == null || date == null || date.isEmpty()) {
|
if (placeId == null || date == null || date.isEmpty()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user