'created smparkinVaporWeb from template https://github.com/vapor/web-template'

This commit is contained in:
Stephen
2019-10-31 16:50:33 -07:00
commit 931b897f65
22 changed files with 436 additions and 0 deletions

12
Sources/App/app.swift Normal file
View File

@@ -0,0 +1,12 @@
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
}