From 3d25ad7de4fdbb3eba2cde2a62422e6be5d79a0a Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Tue, 25 Aug 2026 22:57:22 +0000
Subject: [PATCH] =It's been a minute. I went through the Routes and associated Managers and ensured they played together well. Reworked the Cache.php, and I think I caught all the references. Moving away from JVBase() root class, to individuall classes that are Instanced. Double checked for the ABSPATH check in every file, and added index.php to every directory that didn't already have it. Also still working on the MenuBlock to work with WooCommerce for now for Northeh

---
 inc/rest/routes/AdminRoutes.php |   28 ++++------------------------
 1 files changed, 4 insertions(+), 24 deletions(-)

diff --git a/inc/rest/routes/AdminRoutes.php b/inc/rest/routes/AdminRoutes.php
index 4f89e76..c69a32e 100644
--- a/inc/rest/routes/AdminRoutes.php
+++ b/inc/rest/routes/AdminRoutes.php
@@ -1,6 +1,7 @@
 <?php
 namespace JVBase\rest\routes;
 
+use JVBase\Instance;
 use JVBase\JVB;
 use JVBase\managers\Cache;
 use JVBase\managers\IconsManager;
@@ -18,15 +19,13 @@
 
 class AdminRoutes extends Rest
 {
-    protected array $fields;
-    protected $meta;
-    protected string $metaType;
-    protected string $content;
+	use Instance;
 
     public function __construct()
     {
-        $this->cacheName = 'itsme';
+//        $this->cacheName = 'itsme';
         parent::__construct();
+//		$this->cache = Cache::for($this->cacheName, null, $this->cacheTtl);
     }
     public function registerRoutes():void
     {
@@ -70,25 +69,6 @@
         );
     }
 
-
-    /**
-     * @param array $filters
-     *
-     * @return array
-     */
-    protected function checkFilters(array $filters)
-    {
-        global $karma;
-        $out = [];
-        foreach ($filters as $type => $value) {
-            if (!array_key_exists($type, $karma)) {
-                continue;
-            }
-            $out[$type]  = jvbSanitizeIDList($value);
-        }
-        return $out;
-    }
-
 	/**
 	 * Handle cache-related actions
 	 */

--
Gitblit v1.10.0