Caps-Server/Sources/App/configure.swift

15 lines
446 B
Swift
Raw Normal View History

import Vapor
2020-09-20 11:36:35 +02:00
// configures your application
public func configure(_ app: Application) throws {
// uncomment to serve files from /Public folder
// app.middleware.use(FileMiddleware(publicDirectory: app.directory.publicDirectory))
2020-09-20 12:36:10 +02:00
app.http.server.configuration.port = 6001
2021-01-09 17:30:00 +01:00
app.routes.defaultMaxBodySize = "2mb"
2020-09-20 12:36:10 +02:00
// Register routes to the router
2020-09-20 11:36:35 +02:00
try routes(app)
// Configure the rest of your application here
}