Jake Vanderwerf
2026-07-09 c68aefb847b09daa0697de7684d3451e2e68ce1e
inc/rest/Rest.php
@@ -39,9 +39,15 @@
         $this->cache = Cache::for($this->cacheName, $this->cacheTtl);
      }
      add_action('rest_api_init', [$this, 'registerRoutes']);
      add_action('rest_api_init', [$this, 'registerRoutes'], 10);
      add_action('rest_api_init', [$this, 'ensureDefinitions'], 9);
   }
   public function ensureDefinitions():void
   {
      Site::getInstance();
      Registrar::ensureInstanced();
   }
   /**
    * Register routes - implement using Route builder
    */