From 5e8cdecca7f1d5b82254ffdc9a5d6264361c43b4 Mon Sep 17 00:00:00 2001 From: Vargha Csongor Date: Thu, 18 Apr 2024 21:01:33 +0200 Subject: [PATCH] change bolt+s protocol to bolt+ssc in default for memgraph --- backend/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/main.go b/backend/main.go index ffed0b5..f4c560a 100644 --- a/backend/main.go +++ b/backend/main.go @@ -21,7 +21,7 @@ var ( key = flag.String("key", "./private/keys/key.pem", "Specify the path of TLS key") httpsPort = flag.String("https", ":443", "Specify port for http secure hosting(example for format :443)") httpPort = flag.String("http", ":80", "Specify port for http hosting(example for format :80)") - memgraphURI = flag.String("memgraph", "bolt+s://memgraph:7687", "Specify the Memgraph database URI") + memgraphURI = flag.String("memgraph", "bolt+ssc://memgraph:7687", "Specify the Memgraph database URI") memgraphUser = flag.String("memgraph-user", "", "Specify the Memgraph database user") memgraphPass = flag.String("memgraph-pass", "", "Specify the Memgraph database password") release = flag.Bool("release", false, "Set true to release build") @@ -51,6 +51,7 @@ func main() { router.POST("/createRelationship", handlers.CreateRelationship(memgraphDriver)) router.DELETE("/deleteRelationship", handlers.DeleteRelationship(memgraphDriver)) router.PUT("/verifyRelationship", handlers.VerifyRelationship(memgraphDriver)) + router.POST("/createRelationshipAndPerson", handlers.CreateRelationshipAndPerson(memgraphDriver)) server := utilities.SetupHttpsServer(router, *cert, *key, *httpsPort, *httpPort, requestTimeout)