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

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

split group project and individual project into two separate folders

  • Property mode set to 100644
File size: 635 bytes
Line 
1package mk.ukim.finki.busngobackend.api
2
3import mk.ukim.finki.busngobackend.api.requests.FineRequest
4import mk.ukim.finki.busngobackend.service.FineService
5import org.springframework.web.bind.annotation.PutMapping
6import org.springframework.web.bind.annotation.RequestBody
7import org.springframework.web.bind.annotation.RequestMapping
8import org.springframework.web.bind.annotation.RestController
9
10@RestController
11@RequestMapping("/api/fines")
12class FineController(
13 private val fineService: FineService,
14) {
15 @PutMapping()
16 fun createFine(
17 @RequestBody request: FineRequest,
18 ) = fineService.createFine(request)
19}
Note: See TracBrowser for help on using the repository browser.