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

remove HomeEndpoint

parent 7b125a99
...@@ -2,7 +2,6 @@ package main ...@@ -2,7 +2,6 @@ package main
import ( import (
"bufio" "bufio"
"fmt"
"log" "log"
"net" "net"
"net/http" "net/http"
...@@ -21,10 +20,6 @@ var upgrader = websocket.Upgrader{ ...@@ -21,10 +20,6 @@ var upgrader = websocket.Upgrader{
WriteBufferSize: 0x1000, WriteBufferSize: 0x1000,
} }
func homePage(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "Home Page")
}
func ygoEndpoint(w http.ResponseWriter, r *http.Request) { func ygoEndpoint(w http.ResponseWriter, r *http.Request) {
var wg sync.WaitGroup var wg sync.WaitGroup
...@@ -104,8 +99,7 @@ func tcpProxy(tcp *net.Conn, ws *websocket.Conn, 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 wsChecker(r *http.Request) bool { return true }
func setupRoutes() { func setupRoutes() {
http.HandleFunc("/", homePage) http.HandleFunc("/", ygoEndpoint)
http.HandleFunc("/ygo", ygoEndpoint)
} }
func main() { 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