kitbagjs / router

A type safe router for vuejs
https://router.kitbag.dev
MIT License
173 stars 4 forks source link

Hash on route definition #267

Closed stackoverfloweth closed 1 day ago

stackoverfloweth commented 1 week ago

This PR introduces a type and service for Hash similar to Path, Query, and Host. Each of these parts of the url can be defined when calling createRoute. It's normalized from string | undefined | Host on Route and is combined down from parent routes to children routes. Host is checked for route matching rules, route scoring (for multiple matches), and is used when assembling a URL for a given route.

Some places where Host is different

netlify[bot] commented 1 week ago

Deploy Preview for kitbag-router ready!

Name Link
Latest commit a59a5556a38a1d0ae425c70c57ce771d68f8f415
Latest deploy log https://app.netlify.com/sites/kitbag-router/deploys/66f8118583b2620008653343
Deploy Preview https://deploy-preview-267--kitbag-router.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.