From 78c7dc0740d96fa1f6ec5fe713a2309fd7425237 Mon Sep 17 00:00:00 2001 From: Stephen Date: Mon, 4 Nov 2019 21:23:48 -0800 Subject: [PATCH] formatthing --- Sources/App/app.swift | 2 +- Sources/App/boot.swift | 2 +- Sources/App/configure.swift | 2 +- Sources/App/routes.swift | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Sources/App/app.swift b/Sources/App/app.swift index c1ecaaa..96dea4e 100644 --- a/Sources/App/app.swift +++ b/Sources/App/app.swift @@ -1,6 +1,6 @@ import Vapor -/// Creates an instance of `Application`. This is called from `main.swift` in the run target. +// 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 diff --git a/Sources/App/boot.swift b/Sources/App/boot.swift index 9313115..b104a97 100644 --- a/Sources/App/boot.swift +++ b/Sources/App/boot.swift @@ -1,6 +1,6 @@ import Vapor -/// Called after your application has initialized. +// Called after your application has initialized. public func boot(_ app: Application) throws { // Your code here } diff --git a/Sources/App/configure.swift b/Sources/App/configure.swift index 835adde..b97b11d 100644 --- a/Sources/App/configure.swift +++ b/Sources/App/configure.swift @@ -1,7 +1,7 @@ import Leaf import Vapor -/// Called before your application initializes. +// Called before your application initializes. public func configure(_ config: inout Config, _ env: inout Environment, _ services: inout Services) throws { // Register routes to the router let router = EngineRouter.default() diff --git a/Sources/App/routes.swift b/Sources/App/routes.swift index d84e0c3..4dbfa94 100644 --- a/Sources/App/routes.swift +++ b/Sources/App/routes.swift @@ -1,6 +1,6 @@ import Vapor -/// Register your application's routes here. +// Register your application's routes here. public func routes(_ router: Router) throws { router.get("/") { request in return try request.view().render("home")