Collections/get/pages API is empty?

Hi, I’m using the latest version of cockpit with nuxt and everything was going fine until my call to collections/get/pages?token=(token) suddenly returned empty. It’s definitely populated with entries which I can access and edit through cockpit’s admin just nothing is returning in the API call. I added a few addons which may have caused a problem… any direction as to how to repopulate my api JSON would be appreciated.

For anyone else struggling with this, the problem was the “Publication Period” addon… specifically this section in the addon’s ‘bootstrap.php’ file:

    if (COCKPIT_API_REQUEST) {
      include_once __DIR__ . '/actions.php';
    }

I ended up replacing it with this:

if (COCKPIT_API_REQUEST) {

    $app->on('cockpit.rest.init', function($routes) {
        $routes['publication-period'] = 'PublicationPeriod\\Controller\\RestApi';
    });
}