diff --git a/src/router/router.go b/src/router/router.go index ce1c620..ade5feb 100644 --- a/src/router/router.go +++ b/src/router/router.go @@ -5,6 +5,7 @@ import ( "dofdev/web/pages/about" braillexr "dofdev/web/pages/braille_xr" + "dofdev/web/pages/dev" "dofdev/web/pages/games" "dofdev/web/pages/mono" "dofdev/web/pages/moves" @@ -20,6 +21,7 @@ func New() *mux.Router { r.PathPrefix(("/public/")).Handler(http.StripPrefix("/public/", http.FileServer(http.Dir("web/public/")))) r.HandleFunc("/", mono.Handler) r.HandleFunc("/about", about.Handler) + r.HandleFunc("/dev", dev.Handler) r.HandleFunc("/moves", moves.Handler) r.HandleFunc("/move/{hash}", moves.MoveHandler) r.HandleFunc("/games", games.Handler) diff --git a/tem/html/pages/dev.html b/tem/html/pages/dev.html new file mode 100644 index 0000000..af30e95 --- /dev/null +++ b/tem/html/pages/dev.html @@ -0,0 +1,6 @@ +{{ template "head.html" .}} + +
+ +

dev

+ diff --git a/web/pages/dev/dev.go b/web/pages/dev/dev.go new file mode 100644 index 0000000..9fb52c8 --- /dev/null +++ b/web/pages/dev/dev.go @@ -0,0 +1,21 @@ +package dev + +import ( + "dofdev/tem" + "net/http" +) + +func Handler(w http.ResponseWriter, r *http.Request) { + data := struct { + TopHash string + }{ + TopHash: "silo", + } + tem.Render( + w, r, + "dev.html", + "dev", + "account management", + data, + ) +}