Commit 675e9b70 authored by Chunchi Che's avatar Chunchi Che

remove HomeEndpoint

parent 7b125a99
......@@ -2,7 +2,6 @@ package main
import (
"bufio"
"fmt"
"log"
"net"
"net/http"
......@@ -21,10 +20,6 @@ var upgrader = websocket.Upgrader{
WriteBufferSize: 0x1000,
}
func homePage(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "Home Page")
}
func ygoEndpoint(w http.ResponseWriter, r *http.Request) {
var wg sync.WaitGroup
......@@ -104,8 +99,7 @@ func tcpProxy(tcp *net.Conn, ws *websocket.Conn, wg *sync.WaitGroup) {
func wsChecker(r *http.Request) bool { return true }
func setupRoutes() {
http.HandleFunc("/", homePage)
http.HandleFunc("/ygo", ygoEndpoint)
http.HandleFunc("/", ygoEndpoint)
}
func main() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment