Generate Vapor project.

This commit is contained in:
Andrew Glaze
2025-05-14 18:38:30 -04:00
commit a94752a799
17 changed files with 463 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
import Fluent
import Vapor
struct TodoDTO: Content {
var id: UUID?
var title: String?
func toModel() -> Todo {
let model = Todo()
model.id = self.id
if let title = self.title {
model.title = title
}
return model
}
}