duplicate in note controller to test runner
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run
Details
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run
Details
This commit is contained in:
parent
db1e2ddf3c
commit
37ca7a49a1
|
|
@ -16,6 +16,12 @@ class NoteController(val service: NoteService) {
|
|||
return service.getAllNotes()
|
||||
}
|
||||
|
||||
// Duplicate to test runner
|
||||
@GetMapping("/all_notes")
|
||||
fun getAll(): List<Note> {
|
||||
return service.getAllNotes()
|
||||
}
|
||||
|
||||
@PostMapping("/create")
|
||||
fun createNote(@RequestBody note: Note): Note {
|
||||
return service.updateNote(note)
|
||||
|
|
|
|||
Loading…
Reference in New Issue