diff --git a/client/client b/client/client new file mode 100755 index 0000000..3b6cb21 Binary files /dev/null and b/client/client differ diff --git a/client/main.go b/client/main.go new file mode 100644 index 0000000..f92f4f8 --- /dev/null +++ b/client/main.go @@ -0,0 +1,19 @@ +package main + +import "net/http" +import "fmt" +import "io/ioutil" + +func main() { + resp, err := http.Get("http://127.0.0.1:8081/api/get-token") + if err != nil { + fmt.Println(err) + } + + defer resp.Body.Close() + body, err := ioutil.ReadAll(resp.Body) + if err != nil { + fmt.Println("Error reading body") + } + fmt.Println(string(body)) +}