Skip to content

Conversation

@chrisrng
Copy link
Contributor

@chrisrng chrisrng commented Jul 31, 2019

Adding Route Metadata as an option to pass in an object for a given route

router.add([{ path: "/post/1", handler: page, metadata: { test: 123 } }]);
result = router.recognize("/post/1");
result === [{ handler: page, params: {}, metadata: { test: 123 } }];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants