Migration done for the backend
This commit is contained in:
@@ -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()
|
||||
Reference in New Issue
Block a user