Ajax load more tutorial - for plugins!?

Hey,

has anybody achieved getting this tutorial to work with a plugin? I develop oerhoernchen.de with Kirby2 and want to separate all the code in a plugin.

https://getkirby.com/docs/cookbook/ajax-load-more

Main problem is how to call the projects.json page?

Thanks in advance!

Best regards,
Matthias