Swiftpack.co - Package - vapor/routing

Github

link
Stars: 23
Help us keep the lights on

Dependencies

Releases

3.0.1 - Apr 25, 2018

Fixed:

  • Confusion between "any parameter" and "catch all" created in the previous has been resolved (#41).
// matches /version/:/info
router.get("version", any, "info") { ... }

// matches /users/*
router.get("users", all) { ... }

any: matches and discards any 1 path component. all: matches and discards any 0 or more path components; should be placed at the end of the path.

Milestone: 3.0.1

3.0.0 - Apr 20, 2018

Routing 3.0 is here! 🎉 🚍 High-performance trie-node router.

Docs: https://docs.vapor.codes/3.0/routing/getting-started/

API Docs: https://api.vapor.codes/routing/latest/Routing/


Changes since last RC

New:

  • Cleaned up internal APIs and added doc blocks!
  • TrieRouter and nodes are now a lot simpler.
  • New RoutablePath protocol for future performance optimizations for routing.

Milestone: 3.0.0

3.0.0-rc.2 - Mar 21, 2018

New:

  • Vapor is now running on Swift NIO!
  • Cleaned up PathComponent and DynamicPathComponent to make routing phases more clear.
  • Routing errors should now provide human-readable descriptions.

Milestone

3.0.0-rc.1 - Feb 23, 2018

2.2.1 - Dec 21, 2017

Fixed:

  • Remove Swift warnings.

Milestone