From 32de45d06b172cec5c3e5050d664c90f96ce0448 Mon Sep 17 00:00:00 2001 From: G5andeepD Date: Wed, 13 Nov 2024 10:28:56 +0530 Subject: [PATCH] Fix go gql service --- .samples/go-graphql-service.yaml | 1 + go-graphql-service/main.go | 1 + 2 files changed, 2 insertions(+) diff --git a/.samples/go-graphql-service.yaml b/.samples/go-graphql-service.yaml index 4c52c1e2..edc1f190 100644 --- a/.samples/go-graphql-service.yaml +++ b/.samples/go-graphql-service.yaml @@ -6,6 +6,7 @@ repositoryUrl: https://github.com/wso2/choreo-samples/ componentPath: /go-graphql-service thumbnailPath: /icons/graphql-service.png documentationPath: /go-graphql-service/readme.md +imageVersion: 1.0.1 tags: - Go - GraphQL diff --git a/go-graphql-service/main.go b/go-graphql-service/main.go index a53044c6..ef17d304 100644 --- a/go-graphql-service/main.go +++ b/go-graphql-service/main.go @@ -130,6 +130,7 @@ func graphqlHandler(w http.ResponseWriter, r *http.Request) { func main() { http.HandleFunc("/graphql", graphqlHandler) + http.HandleFunc("/graphql/", graphqlHandler) fmt.Println("Server started at http://localhost:8080/graphql") log.Fatal(http.ListenAndServe(":8080", nil)) }