Fix upload size

This commit is contained in:
Christoph Hagen
2021-01-09 17:30:00 +01:00
parent 423fd01935
commit 5922f5b23e
3 changed files with 3 additions and 16185 deletions

View File

@ -6,6 +6,7 @@ public func configure(_ app: Application) throws {
// app.middleware.use(FileMiddleware(publicDirectory: app.directory.publicDirectory))
app.http.server.configuration.port = 6001
app.routes.defaultMaxBodySize = "2mb"
// Register routes to the router
try routes(app)