Migration done for the backend

This commit is contained in:
2020-04-25 18:17:34 +02:00
parent 52aae6773f
commit 69ede50a59
6 changed files with 65 additions and 37 deletions
@@ -1,7 +1,8 @@
package be.vandewalleh.extensions
import be.vandewalleh.kodein
import be.vandewalleh.services.FullNoteDTOPatch
import be.vandewalleh.services.FullNoteCreateDTO
import be.vandewalleh.services.FullNotePatchDTO
import be.vandewalleh.services.UserService
import io.ktor.application.*
import io.ktor.auth.*
@@ -26,6 +27,6 @@ fun ApplicationCall.userId(): Int {
class NoteCreate(val title: String, val tags: List<String>)
suspend fun ApplicationCall.receiveNoteCreate(): NoteCreate = receive()
suspend fun ApplicationCall.receiveNoteCreate(): FullNoteCreateDTO = receive()
suspend fun ApplicationCall.receiveNotePatch() : FullNoteDTOPatch = receive()
suspend fun ApplicationCall.receiveNotePatch() : FullNotePatchDTO = receive()