Swiftpack.co - Package - vapor/routing-kit

Github

link
Stars: 41
Help us keep the lights on

Dependencies

Used By

Total: 1

Releases

4.0.0-alpha.1 - May 29, 2019

More information on Vapor 4 alpha releases:

https://medium.com/@codevapor/vapor-4-alpha-1-releases-begin-94a4bc79dd9a

API Docs:

https://api.vapor.codes/routing-kit/master/RoutingKit/index.html

3.0.2 - Feb 22, 2019

Fixed:

  • TrieRouter now percent-decodes dynamic parameters. (#65, #64)

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