Files
smpark.in/Vapor3.1.10/Sources/App/app.swift
2020-06-01 14:31:12 -07:00

13 lines
420 B
Swift

import Vapor
// Creates an instance of `Application`. This is called from `main.swift` in the run target.
public func app(_ env: Environment) throws -> Application {
var config = Config.default()
var env = env
var services = Services.default()
try configure(&config, &env, &services)
let app = try Application(config: config, environment: env, services: services)
try boot(app)
return app
}