Generate Vapor project.

This commit is contained in:
Riyyi
2024-11-09 20:38:38 +01:00
commit b47d61aacd
15 changed files with 468 additions and 0 deletions
+17
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
}
}