GenomeUS / keystone-express-sitemap

Dynamic sitemap generation for applications built on KeystoneJS
19 stars 15 forks source link

Routes don't have `path` and `route.path` parameters. #7

Closed kkoscielniak closed 7 years ago

kkoscielniak commented 7 years ago

In parseRoutes() parsing the route isn't possible to fetch path and route.path params. That being said keystone-express-sitemap cannot parse routes and generate the resulting sitemap.xml properly.

KeystoneJS version: 4.0.0-beta.5 ExpressJS version: 4.14.0

kkoscielniak commented 7 years ago

Found out the way:

Issue exists if you're using express.Router(). It doesn't if you use route binding as example shows.