Schafkopf-Server/Sources/App/configure.swift
2021-11-27 11:59:13 +01:00

14 lines
319 B
Swift

import Vapor
var database: Database!
// configures your application
public func configure(_ app: Application) throws {
// serve files from /Public folder
app.middleware.use(FileMiddleware(publicDirectory: app.directory.publicDirectory))
database = Database()
// register routes
try routes(app)
}