|
|
@@ -9,6 +9,7 @@ import (
|
|
|
|
|
|
func main() {
|
|
|
http.HandleFunc("/", generateBoard)
|
|
|
+ http.HandleFunc("/status", status)
|
|
|
log.Fatal(http.ListenAndServe(":8081", nil))
|
|
|
}
|
|
|
|
|
|
@@ -23,3 +24,7 @@ func generateBoard(w http.ResponseWriter, r *http.Request) {
|
|
|
b := board.NewPartial(x, y, width, height, totalWidth, totalHeight)
|
|
|
b.WriteData(w)
|
|
|
}
|
|
|
+
|
|
|
+func status(w http.ResponseWriter, r *http.Request) {
|
|
|
+ w.Write([]byte("ok"))
|
|
|
+}
|