This commit is contained in:
2024-05-24 18:21:30 +01:00
parent 209dd5725c
commit a7d044321b
+1 -6
View File
@@ -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"}`))