This commit is contained in:
parent
c36e6b1947
commit
5a72d919d0
7 changed files with 10667 additions and 227 deletions
|
@ -18,6 +18,10 @@ func NewHandler(store steamServer.Store) *Handler {
|
|||
h.Use(middleware.Logger)
|
||||
|
||||
h.Get("/favicon.ico", faviconHandler)
|
||||
h.Get("/style.css", maincssHandler)
|
||||
h.Get("/css/bootstrap.css", bootstrapHandler)
|
||||
h.Get("/images/01.png", arrowHandler)
|
||||
|
||||
h.Get("/", h.Home())
|
||||
h.Get("/europe", h.Europe())
|
||||
h.Get("/america", h.America())
|
||||
|
@ -37,6 +41,18 @@ func faviconHandler(w http.ResponseWriter, r *http.Request) {
|
|||
http.ServeFile(w, r, "static/favicon.ico")
|
||||
}
|
||||
|
||||
func maincssHandler(w http.ResponseWriter, r *http.Request) {
|
||||
http.ServeFile(w, r, "static/css/style.css")
|
||||
}
|
||||
|
||||
func bootstrapHandler(w http.ResponseWriter, r *http.Request) {
|
||||
http.ServeFile(w, r, "static/css/bootstrap.css")
|
||||
}
|
||||
|
||||
func arrowHandler(w http.ResponseWriter, r *http.Request) {
|
||||
http.ServeFile(w, r, "static/images/01.png")
|
||||
}
|
||||
|
||||
func (h *Handler) Home() http.HandlerFunc {
|
||||
type data struct {
|
||||
Region string
|
||||
|
|
Reference in a new issue