Caps-Server/Sources/App/configure.swift
Christoph Hagen 658f5b186d Set port
2020-09-20 12:36:10 +02:00

14 lines
404 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
// Register routes to the router
try routes(app)
// Configure the rest of your application here
}