duplicate in note controller to test runner
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run Details

This commit is contained in:
Andrey Kassaev 2024-01-01 22:47:07 +04:00
parent db1e2ddf3c
commit 37ca7a49a1
1 changed files with 6 additions and 0 deletions

View File

@ -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)