diff --git a/go.mod b/go.mod index c3d024a..8db437f 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module git.ailur.dev/ailur/datatracker go 1.23.1 require ( - git.ailur.dev/ailur/fg-library v1.0.1 + git.ailur.dev/ailur/fg-library/v2 v2.0.0 git.ailur.dev/ailur/fg-nucleus-library v1.0.0 github.com/golang-jwt/jwt/v5 v5.2.1 github.com/google/uuid v1.6.0 diff --git a/go.sum b/go.sum index 3973979..5f71361 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,5 @@ -git.ailur.dev/ailur/fg-library v1.0.1 h1:7TY2shmYNfKPzCTeYC80uj+sFZPbBWeOlqKT6ZsKFmc= -git.ailur.dev/ailur/fg-library v1.0.1/go.mod h1:hOUkxs2rRouSwNnNZlo7CsFVH12kmjqheyzPQ4to1N8= +git.ailur.dev/ailur/fg-library/v2 v2.0.0 h1:NanDV52W+NBu96v/HPDPGqH8NOxLp6MRrRdXLPEsgYw= +git.ailur.dev/ailur/fg-library/v2 v2.0.0/go.mod h1:1jYbWhabGcIwp7CkhHqvRwC8eP+nHv5BrXPe9NX2HE8= git.ailur.dev/ailur/fg-nucleus-library v1.0.0 h1:TT1V4cfka+uUpvV1zU7bc4KXFkgnsI/sIvaZDDxXk+k= git.ailur.dev/ailur/fg-nucleus-library v1.0.0/go.mod h1:m4gNSEypfgrUV8bXaR8NLB8zchUM59y0ellV1wp/C+I= github.com/go-chi/chi/v5 v5.1.0 h1:acVI1TYaD+hhedDJ3r54HyA6sExp3HfXq7QWEEY/xMw= diff --git a/main.go b/main.go index ddb74d4..7ae8cd0 100644 --- a/main.go +++ b/main.go @@ -9,8 +9,10 @@ import ( "crypto/ed25519" "database/sql" "encoding/json" - library "git.ailur.dev/ailur/fg-library" + + library "git.ailur.dev/ailur/fg-library/v2" authLibrary "git.ailur.dev/ailur/fg-nucleus-library" + "github.com/go-chi/chi/v5" "github.com/golang-jwt/jwt/v5" "github.com/google/uuid" "html/template" @@ -297,7 +299,7 @@ func Main(information library.ServiceInitializationInformation) { } // Set up the router - router := information.Router + router := chi.NewRouter() // Set up the static routes staticDir, err := fs.Sub(information.ResourceDir, "static") @@ -620,6 +622,6 @@ func Main(information library.ServiceInitializationInformation) { ForServiceID: uuid.MustParse("00000000-0000-0000-0000-000000000001"), // Activation service MessageType: 0, SentAt: time.Now(), - Message: true, + Message: router, } }