feat working on vendor views.

This commit is contained in:
2025-01-16 08:02:13 -05:00
parent 6f2e87e886
commit d4a8444700
8 changed files with 239 additions and 132 deletions

View File

@@ -31,7 +31,7 @@ struct VendorApiController: RouteCollection {
@Sendable
func update(req: Request) async throws -> Vendor {
return try await vendors.update(req.ensureIDPathComponent(), req.content.decode(Vendor.Update.self))
return try await vendors.update(req.ensureIDPathComponent(), with: req.content.decode(Vendor.Update.self))
}
@Sendable