From 2a2303d1dccc120dd7aa5f6b6ade0f89e0064850 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Tue, 25 Nov 2025 07:42:23 +0000
Subject: [PATCH] =Feed block mostly good! Referrals look good to go. Ready for Madi and Heidi to approve

---
 JVBase.php |   14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/JVBase.php b/JVBase.php
index 8fd1666..04bb699 100644
--- a/JVBase.php
+++ b/JVBase.php
@@ -25,6 +25,7 @@
 use JVBase\rest\routes\QueueRoutes;
 use JVBase\rest\routes\ErrorRoutes;
 use JVBase\rest\routes\FormRoutes;
+use JVBase\rest\routes\LoginRoutes;
 use JVBase\rest\routes\NewsRoutes;
 use JVBase\rest\routes\ReferralRoutes;
 use JVBase\rest\routes\MagicLinkRoutes;
@@ -61,6 +62,7 @@
 		'gmb' => 'JVBase\integrations\GoogleMyBusiness',
 		'cloudflare' => 'JVBase\integrations\Cloudflare',
 		'umami' => 'JVBase\integrations\Umami',
+		'postmark' => 'JVBase\integrations\PostMark',
 	];
 
     public static function getInstance():JVB
@@ -104,23 +106,24 @@
 		}
 
         $this->routes = [
+			'login'			=> new LoginRoutes(),
 			'integrations'	=> new IntegrationsRoutes(),
 		];
-        if (jvbSiteUsesFeedBlock()) {
+        if (Features::forSite()->has('feed_block')) {
             $this->routes['feed'] = new FeedRoutes();
         }
         if (jvbSiteHasNotifications()) {
 			$this->managers['notifications'] = new NotificationManager();
             $this->routes['notifications'] = new NotificationsRoutes();
         }
-        if (jvbSiteUsesFeedBlock() || jvbSiteHasDashboard()) {
+        if (Features::forSite()->has('feed_block') || jvbSiteHasDashboard()) {
             $this->routes['term'] = new TermRoutes();
         }
 
+		$this->routes['queue']  = new QueueRoutes();
+		$this->routes['settings']= new SettingsRoutes();
+		$this->routes['upload'] = new UploadRoutes();
         if (jvbSiteHasDashboard()) {
-            $this->routes['upload'] = new UploadRoutes();
-            $this->routes['settings']= new SettingsRoutes();
-            $this->routes['queue']  = new QueueRoutes();
             $this->routes['error']  = new ErrorRoutes();
             $this->routes['admin']  = new AdminRoutes();
             $this->routes['content']= new ContentRoutes();
@@ -260,7 +263,6 @@
 
     public function activate():void
     {
-        error_log('Activate!');
         // Activate roles - will be properly initialized after post types are registered
         $this->roles()->activate();
     }

--
Gitblit v1.10.0