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

@@ -0,0 +1,8 @@
import Vapor
extension Request {
func ensureValidContent<T>(_ decoding: T.Type) throws -> T where T: Content, T: Validatable {
try T.validate(content: self)
return try content.decode(T.self)
}
}