Enha: bot guesser
This commit is contained in:
		
							
								
								
									
										8
									
								
								main.go
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								main.go
									
									
									
									
									
								
							| @@ -11,10 +11,9 @@ import ( | ||||
| func ListenToRequests(port string) error { | ||||
| 	mux := http.NewServeMux() | ||||
| 	server := &http.Server{ | ||||
| 		Handler:     handlers.LogRequests(handlers.GetSession(mux)), | ||||
| 		Addr:        port, | ||||
| 		ReadTimeout: time.Second * 5, | ||||
| 		// WriteTimeout: time.Second * 5, | ||||
| 		Handler:      handlers.LogRequests(handlers.GetSession(mux)), | ||||
| 		Addr:         port, | ||||
| 		ReadTimeout:  time.Second * 5, | ||||
| 		WriteTimeout: 0, // sse streaming | ||||
| 	} | ||||
| 	fs := http.FileServer(http.Dir("assets/")) | ||||
| @@ -23,7 +22,6 @@ func ListenToRequests(port string) error { | ||||
| 	mux.HandleFunc("GET /ping", handlers.HandlePing) | ||||
| 	mux.HandleFunc("GET /", handlers.HandleHome) | ||||
| 	mux.HandleFunc("POST /login", handlers.HandleFrontLogin) | ||||
| 	// mux.HandleFunc("GET /room", handlers.HandleRoomEnter) | ||||
| 	mux.HandleFunc("POST /join-team", handlers.HandleJoinTeam) | ||||
| 	mux.HandleFunc("GET /end-turn", handlers.HandleEndTurn) | ||||
| 	mux.HandleFunc("POST /room-create", handlers.HandleCreateRoom) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Grail Finder
					Grail Finder