Handle webserver requests from the scouting web page
Right now we don't actually serve a whole lot. It's mostly the
infrastructure. I added a simple data scouting submission as an
example. We can build up from there.
Signed-off-by: Philipp Schrader <philipp.schrader@gmail.com>
Change-Id: I0572a214039cdb61e5bddf6f7256955a06147099
diff --git a/scouting/webserver/main.go b/scouting/webserver/main.go
index aebeef9..2baf36d 100644
--- a/scouting/webserver/main.go
+++ b/scouting/webserver/main.go
@@ -7,6 +7,7 @@
"os/signal"
"syscall"
+ "github.com/frc971/971-Robot-Code/scouting/webserver/requests"
"github.com/frc971/971-Robot-Code/scouting/webserver/server"
"github.com/frc971/971-Robot-Code/scouting/webserver/static"
)
@@ -18,6 +19,7 @@
scoutingServer := server.NewScoutingServer()
static.ServePages(scoutingServer, *dirPtr)
+ requests.HandleRequests(scoutingServer)
scoutingServer.Start(*portPtr)
fmt.Println("Serving", *dirPtr, "on port", *portPtr)