source: bus-n-go-pavel-216049/bus-n-go-backend/src/main/kotlin/mk/ukim/finki/busngobackend/api/StationController.kt

Last change on this file was baf4cc4, checked in by ppaunovski <paunovskipavel@…>, 4 weeks ago

split group project and individual project into two separate folders

  • Property mode set to 100644
File size: 479 bytes
Line 
1package mk.ukim.finki.busngobackend.api
2
3import mk.ukim.finki.busngobackend.service.StationService
4import org.springframework.web.bind.annotation.GetMapping
5import org.springframework.web.bind.annotation.RequestMapping
6import org.springframework.web.bind.annotation.RestController
7
8@RestController
9@RequestMapping("/api/stations")
10class StationController(
11 private val stationService: StationService,
12) {
13 @GetMapping()
14 fun getAllStations() = stationService.getAll()
15}
Note: See TracBrowser for help on using the repository browser.