feat: Moves database dependency directory.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user