From 2127b1bdd73ecd2423e443992da4b442f5a3c1a3 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Wed, 04 Feb 2026 21:19:25 +0000
Subject: [PATCH] =Major overhaul of MetaManager.php -> Meta.php and RestRouteManager.php -> Rest.php. Seems to work for JakeVan

---
 inc/registry/ContentRegistry.php |   35 ++---------------------------------
 1 files changed, 2 insertions(+), 33 deletions(-)

diff --git a/inc/registry/ContentRegistry.php b/inc/registry/ContentRegistry.php
index 00719e2..3d02334 100644
--- a/inc/registry/ContentRegistry.php
+++ b/inc/registry/ContentRegistry.php
@@ -6,7 +6,7 @@
 }
 
 use JVBase\managers\RoleManager;
-use JVBase\meta\MetaRegistry;
+use JVBase\meta\Registry;
 use JVBase\rest\RegisterRoutes;
 
 class ContentRegistry
@@ -102,7 +102,7 @@
 			return;
 		}
 
-		$meta_registry = new MetaRegistry($fields, $type, $object_type);
+		$meta_registry = new Registry($fields, $type, $object_type);
 		$meta_registry->registerMetaFields();
 	}
 
@@ -158,37 +158,6 @@
 			new OptionsRegistry($fields);
 		}
 	}
-
-	/**
-	 * Register REST routes
-	 */
-	public function registerRestRoutes(): void
-	{
-		// Register routes for post types
-		foreach (JVB_CONTENT as $slug => $config) {
-			$this->registerRoute($slug, $config);
-		}
-
-		// Register routes for content taxonomies
-		foreach (JVB_TAXONOMY as $slug => $config) {
-			if (jvbCheck('is_content', $config)) {
-				$this->registerRoute($slug, $config, 'content_tax');
-			}
-		}
-
-		// Register routes for options
-		if (!empty(JVB_OPTIONS)) {
-			$this->registerRoute('options', JVB_OPTIONS['fields'], 'options');
-		}
-	}
-
-	/**
-	 * Register a single route
-	 */
-	protected function registerRoute(string $slug, array $config, string $type = ''): void
-	{
-		JVB()->addRoute($slug, new RegisterRoutes($slug, $config));
-	}
 }
 
 new ContentRegistry();

--
Gitblit v1.10.0