This project helps to demonstrate how route constraints can be used to create root-level vanity URL's, while still having catch-all routes in place for easy 404 pages, or static pages using high_voltage
gem.
See accompanying blog post for more details:
https://www.mikewilson.dev/posts/rails-vanity-urls-with-route-constraints/