Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. extension MongoKitten.Database: Service {}
  2.  
  3. public func configure(_ config: inout Config, _ env: inout Environment, _ services: inout Services) throws {
  4.  
  5. services.register(Router.self) { container -> EngineRouter in
  6. let router = EngineRouter.default()
  7. try routes(router, container: container)
  8. return router
  9. }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement