@tanner0101 tanner0101 released this Apr 25, 2018

Assets 2

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

@tanner0101 tanner0101 released this Apr 20, 2018 · 7 commits to master since this release

Assets 2

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

Pre-release

@tanner0101 tanner0101 released this Mar 21, 2018 · 14 commits to master since this release

Assets 2

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

Pre-release
Pre-release

@tanner0101 tanner0101 released this Feb 23, 2018 · 25 commits to master since this release

Assets 2
Merge pull request #35 from vapor/rc

routing 3

@tanner0101 tanner0101 released this Dec 21, 2017 · 30 commits to master since this release

Assets 2

Fixed:

  • Remove Swift warnings.

Milestone

@tanner0101 tanner0101 released this Oct 4, 2017 · 33 commits to master since this release

Assets 2

New:

  • You can now flush the internal route cache.

Milestone

@tanner0101 tanner0101 released this Aug 10, 2017 · 37 commits to master since this release

Assets 2

New:

  • Swift 4 support.

Milestone

@tanner0101 tanner0101 released this Jul 19, 2017 · 40 commits to master since this release

Assets 2

Fixed:

  • Sync access to route cache dictionary.

Milestone

@LoganWright LoganWright released this May 17, 2017 · 42 commits to master since this release

Assets 2

🎉

Routing 2.0 has been greatly simplified and more focused on being a great HTTP router for Vapor. We've reduced and clarified some generics and made it easier to add extensible functionality via our performant branch architecture.

Check out the full diff here

May 11, 2017
int + string parameterizable