From b840529d13f0eb99e440e41d2b08280065029906 Mon Sep 17 00:00:00 2001 From: arzumify Date: Sun, 20 Oct 2024 19:45:28 +0100 Subject: [PATCH] Try to fix the borked subdomain architecture --- main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.go b/main.go index a7187e0..3457ef1 100644 --- a/main.go +++ b/main.go @@ -2,6 +2,7 @@ package library import ( "database/sql" + "github.com/go-chi/chi/v5" "github.com/google/uuid" "io/fs" "time" @@ -33,6 +34,7 @@ type ServiceInitializationInformation struct { Domain string `validate:"required"` Outbox chan<- InterServiceMessage `validate:"required"` Inbox <-chan InterServiceMessage `validate:"required"` + Router *chi.Mux `validate:"required"` Configuration map[string]interface{} ResourceDir fs.FS }