switch back to docker

This commit is contained in:
2024-07-05 10:09:18 -07:00
parent 261b9686bc
commit 07a19be4b3
34 changed files with 259 additions and 715 deletions

View File

@@ -0,0 +1,15 @@
import Leaf
import Vapor
// Called before your application initializes.
public func configure(_ app: Application) throws {
//leaf
app.views.use(.leaf)
//Register middleware
app.middleware.use(FileMiddleware(publicDirectory: app.directory.publicDirectory))
app.middleware.use(ErrorMiddleware.default(environment: app.environment))
//routes
try routes(app)
}