Router
Overview
Router is a highly extensibly and customizable HTTP router.
Usage
let router = Router { route in
route.get("/hello/:name") { request in
guard let name = request.pathParameters["name"] else {
return Response(status: .internalServerError)
}
return Response(body: "Hello, \(name)!")
}
}
Installation
import PackageDescription
let package = Package(
dependencies: [
.Package(url: "https://github.com/Zewo/Router.git", majorVersion: 0, minor: 5),
]
)
Support
If you need any help you can join our Slack and go to the #help channel. Or you can create a Github issue in our main repository. When stating your issue be sure to add enough details, specify what module is causing the problem and reproduction steps.
Community
The entire Zewo code base is licensed under MIT. By contributing to Zewo you are contributing to an open and engaged community of brilliant Swift programmers. Join us on Slack to get to know us!
License
This project is released under the MIT license. See LICENSE for details.