Skip to content

Instantly share code, notes, and snippets.

@bennibau
Created September 9, 2017 10:05
Show Gist options
  • Save bennibau/0edb7f7e209546bbef3c3da1ab31dc87 to your computer and use it in GitHub Desktop.
Save bennibau/0edb7f7e209546bbef3c3da1ab31dc87 to your computer and use it in GitHub Desktop.
@_exported import Vapor
extension Droplet {
public func setup() throws {
let routes = Routes(view,drop: self)
try collection(routes)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment