Refactor web handlers into separate package.

This commit is contained in:
Patrick Fairbank
2017-08-31 23:26:22 -07:00
parent 538e1ab7bc
commit 346912572f
52 changed files with 122 additions and 159 deletions

View File

@@ -5,6 +5,7 @@ package main
import (
"github.com/Team254/cheesy-arena/field"
"github.com/Team254/cheesy-arena/web"
"log"
"math/rand"
"time"
@@ -23,7 +24,7 @@ func main() {
}
// Start the web server in a separate goroutine.
web := NewWeb(arena)
web := web.NewWeb(arena)
go web.ServeWebInterface(httpPort)
// Run the arena state machine in the main thread.