BookStackApp / api-scripts

MIGRATED TO CODEBERG -- Examples of BookStack API scripts
https://codeberg.org/bookstack/api-scripts
MIT License
87 stars 22 forks source link

php-generate-sitemap - no chapters #4

Closed Badiboy closed 2 years ago

Badiboy commented 2 years ago

Thank you for the very useful script.

Could you please check, why php-generate-sitemap does not generate links for chapters? Like this: https://demo.bookstackapp.com/books/dummy-content-book/chapter/chapter-a

(If you need a ready test case - I can provide you the private API access).

ssddanbrown commented 2 years ago

Hi @Badiboy,

I think this was generating such chapter links but they would not be output due to an error in how I was joining together all the different endpoints. Have addressed this in f165f615fae3b415cbf47a96661c4d43043e6a11 so, with those changes, you should now get chapter endpoints also. Have verified this on my local dev instance.

Badiboy commented 2 years ago

Thank you, it seems fine now!