|
Last change
on this file was 09e02d7, checked in by Nikola Sarafimov <sarafimov.nikola12345@…>, 4 days ago |
|
Final room reservation system implementation
|
-
Property mode
set to
100644
|
|
File size:
684 bytes
|
| Line | |
|---|
| 1 | package mk.finki.roomreservation.controller;
|
|---|
| 2 |
|
|---|
| 3 | import mk.finki.roomreservation.model.EquipmentOption;
|
|---|
| 4 | import mk.finki.roomreservation.service.EquipmentService;
|
|---|
| 5 | import org.springframework.web.bind.annotation.GetMapping;
|
|---|
| 6 | import org.springframework.web.bind.annotation.RestController;
|
|---|
| 7 |
|
|---|
| 8 | import java.util.List;
|
|---|
| 9 |
|
|---|
| 10 | @RestController
|
|---|
| 11 | public class EquipmentController {
|
|---|
| 12 |
|
|---|
| 13 | private final EquipmentService equipmentService;
|
|---|
| 14 |
|
|---|
| 15 | public EquipmentController(EquipmentService equipmentService) {
|
|---|
| 16 | this.equipmentService = equipmentService;
|
|---|
| 17 | }
|
|---|
| 18 |
|
|---|
| 19 | @GetMapping("/api/equipment")
|
|---|
| 20 | public List<EquipmentOption> findAllEquipment() {
|
|---|
| 21 | return equipmentService.findAllEquipment();
|
|---|
| 22 | }
|
|---|
| 23 | } |
|---|
Note:
See
TracBrowser
for help on using the repository browser.