Caps-Server/Sources/App/configure.swift
2021-01-09 17:30:00 +01:00

15 lines
446 B
Swift
Executable File

import Vapor
// configures your application
public func configure(_ app: Application) throws {
// uncomment to serve files from /Public folder
// 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)
// Configure the rest of your application here
}