From a9b3b28d001941921aa70d37fdc87c758a163a44 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Fri, 05 Jun 2026 16:47:03 +0000
Subject: [PATCH] =Some hefty changes to FeedBlock. Transitioning to loading first page in php to save on extra requests. Got a bit to do yet, but I have to work on Northeh for a bit here.

---
 inc/rest/routes/SEORoutes.php |   13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/inc/rest/routes/SEORoutes.php b/inc/rest/routes/SEORoutes.php
index e5154ed..786452a 100644
--- a/inc/rest/routes/SEORoutes.php
+++ b/inc/rest/routes/SEORoutes.php
@@ -1,6 +1,7 @@
 <?php
 namespace JVBase\rest\routes;
 
+use JVBase\registrar\Registrar;
 use JVBase\rest\Rest;
 use JVBase\managers\Cache;
 use JVBase\managers\SEO\ConfigManager;
@@ -22,13 +23,13 @@
  */
 class SEORoutes extends Rest
 {
-	protected SchemaBuilder $registry;
+//	protected SchemaBuilder $registry;
 
 	public function __construct()
 	{
 		$this->cacheName = 'schema';
 		parent::__construct();
-		$this->registry = SchemaBuilder::getInstance();
+//		$this->registry = SchemaBuilder::getInstance();
 	}
 
 	/**
@@ -43,14 +44,16 @@
 				'action' => 'string|required|enum:save,reset,preview',
 				'context'=> 'string|required'
 			])
-			->rateLimit(30);
+			->rateLimit(30)
+			->register();
 
 		Route::for('seo/fields')
 			->get([$this, 'getFields'])
 			->auth('admin')
 			->args([
 				'type'=>'string|required'
-			]);
+			])
+			->register();
 	}
 
 	/**
@@ -262,6 +265,6 @@
 		}
 
 		// Check if it's a valid content/taxonomy/user type
-		return $this->checkContent($context, true);
+		return (bool)Registrar::getInstance($context);
 	}
 }

--
Gitblit v1.10.0