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 | |
---|
1 | package mk.ukim.finki.busngobackend.api
|
---|
2 |
|
---|
3 | import mk.ukim.finki.busngobackend.api.requests.FineRequest
|
---|
4 | import mk.ukim.finki.busngobackend.service.FineService
|
---|
5 | import org.springframework.web.bind.annotation.PutMapping
|
---|
6 | import org.springframework.web.bind.annotation.RequestBody
|
---|
7 | import org.springframework.web.bind.annotation.RequestMapping
|
---|
8 | import org.springframework.web.bind.annotation.RestController
|
---|
9 |
|
---|
10 | @RestController
|
---|
11 | @RequestMapping("/api/fines")
|
---|
12 | class 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.