📮 Adds action routes

This commit is contained in:
Daniel Svitan
2025-05-11 18:20:52 +02:00
parent de3bc8897e
commit 2fa523b814
6 changed files with 132 additions and 28 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ fun Application.routeAuth() {
call.respond(AuthService.readAll())
}
put("/auth") {
post("/auth") {
val auth = call.receive<NewAuthDTO>()
call.respond(HttpStatusCode.Created, AuthService.create(auth))
}