From 9601b88b414fd95b19f148f1d8d31d3b47e1b991 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Tue, 7 Apr 2026 15:42:48 +0000 Subject: [PATCH] Fix breaking the API routing Ordering matters when you have a catch-all for the SPA --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 6a3b2f88..5d200b87 100644 --- a/main.go +++ b/main.go @@ -119,13 +119,13 @@ func main() { rmo_router := r.Host(config.DomainRMO).Subrouter() // Set up routing by hostname - nidussync.Router(sync_router) sync_api_router := sync_router.PathPrefix("/api").Subrouter() api.AddRoutes(sync_api_router) + nidussync.Router(sync_router) - rmo.Router(rmo_router) rmo_api_router := rmo_router.PathPrefix("/api").Subrouter() api.AddRoutes(rmo_api_router) + rmo.Router(rmo_router) //hr.Map("", sr) // default //hr.Map("*", sr) // default