on master help sign in
12 lines 417 B history raw
1import Vapor
3/// Creates an instance of Application. This is called from main.swift in the run target.
4public func app(_ env: Environment) throws -> Application {
5 var config = Config.default()
6 var env = env
7 var services = Services.default()
8 try configure(&config, &env, &services)
9 let app = try Application(config: config, environment: env, services: services)
10 try boot(app)
11 return app