Changeset e15e8d9 for src/main/java/com/example/rezevirajmasa/demo/web
- Timestamp:
- 04/30/25 18:24:41 (3 weeks ago)
- Branches:
- main
- Children:
- 2518b3a
- Parents:
- deea3c4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/rezevirajmasa/demo/web/rest/testController.java
rdeea3c4 re15e8d9 37 37 private final ReservationHistoryService reservationHistoryService; 38 38 private final TableService tableService; 39 private final MenuService menuService; 39 40 private final UserMapper userMapper; 40 41 private final TokenService tokenService; 41 public testController(RestaurantService restaurantService, CustomerService customerService, UserService userService, ReservationService reservationService, ReservationHistoryService reservationHistoryService, TableService tableService, UserMapper userMapper, TokenService tokenService) {42 public testController(RestaurantService restaurantService, CustomerService customerService, UserService userService, ReservationService reservationService, ReservationHistoryService reservationHistoryService, TableService tableService, MenuService menuService, UserMapper userMapper, TokenService tokenService) { 42 43 this.restaurantService = restaurantService; 43 44 this.customerService = customerService; … … 46 47 this.reservationHistoryService = reservationHistoryService; 47 48 this.tableService = tableService; 49 this.menuService = menuService; 48 50 this.userMapper = userMapper; 49 51 this.tokenService = tokenService; … … 272 274 return new ResponseEntity<>(reservations, HttpStatus.OK); 273 275 } 276 277 // menu calls 278 @GetMapping("/api/restaurant-menu/{restaurantId}") 279 public List<Menu> getMenuByRestaurantId(@PathVariable Long restaurantId) { 280 return menuService.getMenuByRestaurantId(restaurantId); 281 } 274 282 }
Note:
See TracChangeset
for help on using the changeset viewer.