feat: Moves database dependency directory.

This commit is contained in:
2025-01-11 00:26:08 -05:00
parent 9994644d21
commit 0e31d2c30c
11 changed files with 20 additions and 18 deletions

View File

@@ -33,9 +33,7 @@ struct UserApiController: RouteCollection {
throw Abort(.unauthorized)
}
}
try User.Create.validate(content: req)
let model = try req.content.decode(User.Create.self)
return try await users.create(model)
return try await users.create(req.ensureValidContent(User.Create.self))
}
@Sendable