game-wake-wolf commited on
Commit
b186c42
·
verified ·
1 Parent(s): 053e7a9

Update api/main.go

Browse files
Files changed (1) hide show
  1. api/main.go +8 -0
api/main.go CHANGED
@@ -327,4 +327,12 @@ func handleStreamingResponse(w http.ResponseWriter, youReq *http.Request) {
327
  w.(http.Flusher).Flush()
328
  }
329
  }
 
 
 
 
 
 
 
 
330
  }
 
327
  w.(http.Flusher).Flush()
328
  }
329
  }
330
+ }
331
+
332
+ func main() {
333
+ http.HandleFunc("/", Handler)
334
+ fmt.Println("Server starting on :7860...")
335
+ if err := http.ListenAndServe(":7860", nil); err != nil {
336
+ fmt.Printf("Error starting server: %v\n", err)
337
+ }
338
  }