Swiftpack.co - Package - vapor/routing-kit

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.

vapor/routing-kit

🚍 High-performance trie-node router.

Github

link
Stars: 75
Last commit: 2 weeks ago

Releases

Add support for string interpolation to PathComponent - 2020-07-16T17:46:01

This patch was authored by @dimitribouniol and released by @tanner0101.

Enables call sites that use PathComponents to allow for string literals that make use of interpolation (#101).

In Vapor, this enables constants and other variables to be used in routes:

let api = app.grouped("version-\(Constants.apiVersion)")