📮 Adds action routes
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user