dunno
This commit is contained in:
@@ -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"}`))
|
||||
|
||||
Reference in New Issue
Block a user