I tried to implement the API plugin and page model as you described under 1. and 2. but I get a 404 error. Does that have anything to do with plugins apparently being loaded before the router is initialized, as mentionend in another post?
Note that I’ve changed pages()
to $pages
in site/plugins/api.php, which I assume was a typo?
Any idea what I might be missing?