Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- extension MongoKitten.Database: Service {}
- public func configure(_ config: inout Config, _ env: inout Environment, _ services: inout Services) throws {
- services.register(Router.self) { container -> EngineRouter in
- let router = EngineRouter.default()
- try routes(router, container: container)
- return router
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement