feat: Begins implementing route definitions.

This commit is contained in:
2025-01-18 18:49:04 -05:00
parent 9efd920456
commit da41da566b
10 changed files with 469 additions and 17 deletions

View File

@@ -2,7 +2,6 @@ import DatabaseClientLive
import Dependencies
import Fluent
import FluentSQLiteDriver
import Leaf
import NIOSSL
import SharedModels
import Vapor
@@ -45,8 +44,11 @@ public func configure(_ app: Application) async throws {
try routes(app)
}
if app.environment != .production {
try await app.autoMigrate()
// if app.environment != .production {
try await app.autoMigrate()
// }
#if DEBUG
app.asyncCommands.use(SeedCommand(), as: "seed")
}
#endif
}