feat: Moves database dependency directory.
This commit is contained in:
@@ -24,9 +24,7 @@ struct VendorApiController: RouteCollection {
|
||||
|
||||
@Sendable
|
||||
func create(req: Request) async throws -> Vendor.DTO {
|
||||
try Vendor.Create.validate(content: req)
|
||||
let model = try req.content.decode(Vendor.Create.self)
|
||||
return try await vendors.create(model)
|
||||
try await vendors.create(req.ensureValidContent(Vendor.Create.self))
|
||||
}
|
||||
|
||||
@Sendable
|
||||
|
||||
Reference in New Issue
Block a user