mirror of https://github.com/vapor/docs.git
581 B
581 B
Using Routing
With Vapor
This package is included with Vapor by default, just add:
import Routing
Without Vapor
Routing providers a performant, pure-Swift router to use in any server-side Swift project. To include it in your package, add the following to your Package.swift file.
import PackageDescription
let package = Package(
name: "Project",
dependencies: [
...
.Package(url: "https://github.com/vapor/routing.git", majorVersion: 2)
],
exclude: [ ... ]
)
Use import Routing to access Routing's APIs