diff --git a/go.mod b/go.mod index 16459c6..44c841a 100644 --- a/go.mod +++ b/go.mod @@ -3,6 +3,7 @@ module pkg/spamasaurusrex go 1.19 require ( + github.com/breml/rootcerts v0.2.16 github.com/gorilla/mux v1.8.1 github.com/microsoftgraph/msgraph-sdk-go v1.34.0 ) diff --git a/go.sum b/go.sum index 5e06045..62badb0 100644 --- a/go.sum +++ b/go.sum @@ -6,6 +6,8 @@ github.com/Azure/azure-sdk-for-go/sdk/internal v1.5.2 h1:LqbJ/WzJUwBf8UiaSzgX7aM github.com/Azure/azure-sdk-for-go/sdk/internal v1.5.2/go.mod h1:yInRyqWXAuaPrgI7p70+lDDgh3mlBohis29jGMISnmc= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.1 h1:DzHpqpoJVaCgOUdVHxE8QB52S6NiVdDQvGlny1qvPqA= github.com/AzureAD/microsoft-authentication-library-for-go v1.2.1/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= +github.com/breml/rootcerts v0.2.16 h1:yN1TGvicfHx8dKz3OQRIrx/5nE/iN3XT1ibqGbd6urc= +github.com/breml/rootcerts v0.2.16/go.mod h1:S/PKh+4d1HUn4HQovEB8hPJZO6pUZYrIhmXBhsegfXw= github.com/cjlapao/common-go v0.0.39 h1:bAAUrj2B9v0kMzbAOhzjSmiyDy+rd56r2sy7oEiQLlA= github.com/cjlapao/common-go v0.0.39/go.mod h1:M3dzazLjTjEtZJbbxoA5ZDiGCiHmpwqW9l4UWaddwOA= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= diff --git a/pkg/spamasaurusrex/main.go b/pkg/spamasaurusrex/main.go index fe36b76..0580a2e 100644 --- a/pkg/spamasaurusrex/main.go +++ b/pkg/spamasaurusrex/main.go @@ -11,6 +11,7 @@ import ( "syscall" "time" + _ "github.com/breml/rootcerts" "github.com/gorilla/mux" ) @@ -49,7 +50,6 @@ func readinessHandler(w http.ResponseWriter, r *http.Request) { } func main() { - // Create Server and Route Handlers r := mux.NewRouter() r.HandleFunc("/", handler)