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
2019-05-27 23:46:09 +02:00

16 lines
269 B
Go

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
}