From a7d044321b29c312bdf24c8f144968f66472b2c6 Mon Sep 17 00:00:00 2001 From: Eduardo Silva Date: Fri, 24 May 2024 18:21:30 +0100 Subject: [PATCH] dunno --- src/server/tpServer.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/server/tpServer.go b/src/server/tpServer.go index 4fc1731..8939994 100644 --- a/src/server/tpServer.go +++ b/src/server/tpServer.go @@ -15,14 +15,9 @@ func printMessage(message string) { func LaunchServer(w http.ResponseWriter, r *http.Request) { w.Header().Add("Content-Type", "application/json") - // TODO: solve this thing - // if !authenticate(w, r) { - // return - // } - data, _ := io.ReadAll(r.Body) fmt.Println(string(data)) - // printMessage(string(data) + "\n\n\n") + printMessage(string(data) + "\n\n\n") w.WriteHeader(http.StatusOK) w.Write([]byte(`{"result": "SUCCESS"}`))