webui: show graphql urls

This commit is contained in:
Michael Muré 2018-07-29 21:05:48 +02:00
parent f0f927645b
commit 64354c7ce3
No known key found for this signature in database
GPG Key ID: A4457C029293126F

View File

@ -27,7 +27,9 @@ func runWebUI(cmd *cobra.Command, args []string) error {
addr := fmt.Sprintf("127.0.0.1:%d", port) addr := fmt.Sprintf("127.0.0.1:%d", port)
webUiAddr := fmt.Sprintf("http://%s", addr) webUiAddr := fmt.Sprintf("http://%s", addr)
fmt.Printf("Web UI available at %s\n", webUiAddr) fmt.Printf("Web UI: %s\n", webUiAddr)
fmt.Printf("Graphql API: http://%s/graphql\n", addr)
fmt.Printf("Graphql Playground: http://%s/playground\n", addr)
router := mux.NewRouter() router := mux.NewRouter()