This repository has been archived on 2019-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
scoreboard/features/index/routes.go

17 lines
269 B
Go
Raw Permalink Normal View History

2019-05-27 21:46:09 +00:00
package index
import (
"html/template"
"git.cliffbreak.de/haveachin/scoreboard/features"
"github.com/go-chi/chi"
)
func Routes(s features.Service, t *template.Template) *chi.Mux {
router := chi.NewRouter()
router.Get("/", queryHandler(s, t))
return router
}