Ignore:
Timestamp:
04/30/25 18:24:41 (3 weeks ago)
Author:
Aleksandar Panovski <apano77@…>
Branches:
main
Children:
2518b3a
Parents:
deea3c4
Message:

menu feature done

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/com/example/rezevirajmasa/demo/web/rest/testController.java

    rdeea3c4 re15e8d9  
    3737    private final ReservationHistoryService reservationHistoryService;
    3838    private final TableService tableService;
     39    private final MenuService menuService;
    3940    private final UserMapper userMapper;
    4041    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) {
    4243        this.restaurantService = restaurantService;
    4344        this.customerService = customerService;
     
    4647        this.reservationHistoryService = reservationHistoryService;
    4748        this.tableService = tableService;
     49        this.menuService = menuService;
    4850        this.userMapper = userMapper;
    4951        this.tokenService = tokenService;
     
    272274        return new ResponseEntity<>(reservations, HttpStatus.OK);
    273275    }
     276
     277    // menu calls
     278    @GetMapping("/api/restaurant-menu/{restaurantId}")
     279    public List<Menu> getMenuByRestaurantId(@PathVariable Long restaurantId) {
     280        return menuService.getMenuByRestaurantId(restaurantId);
     281    }
    274282}
Note: See TracChangeset for help on using the changeset viewer.