|
|
@@ -6,7 +6,7 @@ import Vapor |
|
|
public func configure(_ app: Application) async throws { |
|
|
public func configure(_ app: Application) async throws { |
|
|
// uncomment to serve files from /Public folder |
|
|
// uncomment to serve files from /Public folder |
|
|
// app.middleware.use(FileMiddleware(publicDirectory: app.directory.publicDirectory)) |
|
|
// app.middleware.use(FileMiddleware(publicDirectory: app.directory.publicDirectory)) |
|
|
|
|
|
|
|
|
|
|
|
app.routes.defaultMaxBodySize = "1mb" |
|
|
app.databases.use(.postgres(hostname: "localhost", username: "mcarman", password: "@ng31F@rm0823262", database: "fueling"), as: .psql) |
|
|
app.databases.use(.postgres(hostname: "localhost", username: "mcarman", password: "@ng31F@rm0823262", database: "fueling"), as: .psql) |
|
|
app.http.server.configuration.port = 3001 |
|
|
app.http.server.configuration.port = 3001 |
|
|
app.migrations.add(CreateFuelEntry()) |
|
|
app.migrations.add(CreateFuelEntry()) |
|
|
|