X-Git-Url: http://git.scottworley.com/reliable-chat/blobdiff_plain/b199796a3d2c82a84243e3a5ad3099315d8f1b55..0248a518996a6bf532cd4d91e8bcab8dde60cee1:/server/server.go diff --git a/server/server.go b/server/server.go index 8ce9678..5c5ef50 100644 --- a/server/server.go +++ b/server/server.go @@ -95,6 +95,48 @@ func start_store() Store { return store } +const frame_html = ` + + +
+ + + + + +` + func start_server(store Store) { http.HandleFunc("/fetch", func(w http.ResponseWriter, r *http.Request) { var since time.Time @@ -128,6 +170,10 @@ func start_server(store Store) { r.FormValue("text")} }) + http.HandleFunc("/frame", func(w http.ResponseWriter, r *http.Request) { + w.Write([]byte(frame_html)); + }) + log.Fatal(http.ListenAndServe(":"+strconv.Itoa(*port), nil)) }