Created
January 28, 2019 06:58
-
-
Save timbaev/7c3c3b19184c04f9295b2f7d1e22fe22 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Vapor | |
/// Register your application's routes here. | |
public func routes(_ router: Router) throws { | |
// MARK: - TodoController | |
let todoController = TodoController(todoService: ProjectServices.todoService) | |
try router.register(collection: todoController) | |
// MARK: - UserController | |
let userController = UserController(userService: ProjectServices.userService) | |
try router.register(collection: userController) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment