From 27ebb0315615692cb967149464fa5d25df2e293b Mon Sep 17 00:00:00 2001 From: Arzumify Date: Tue, 15 Oct 2024 19:17:57 +0100 Subject: [PATCH] Use latest fulgens API --- main.go | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/main.go b/main.go index 7ae8cd0..66d8232 100644 --- a/main.go +++ b/main.go @@ -162,7 +162,7 @@ func verifyJwt(token string, publicKey ed25519.PublicKey, conn library.Database) return claims, true } -func Main(information library.ServiceInitializationInformation) { +func Main(information library.ServiceInitializationInformation) *chi.Mux { var conn library.Database hostName := information.Configuration["hostName"].(string) @@ -616,12 +616,5 @@ func Main(information library.ServiceInitializationInformation) { }, "oauth.html", information) }) - // Report a successful activation - information.Outbox <- library.InterServiceMessage{ - ServiceID: ServiceInformation.ServiceID, - ForServiceID: uuid.MustParse("00000000-0000-0000-0000-000000000001"), // Activation service - MessageType: 0, - SentAt: time.Now(), - Message: router, - } + return router }