17 lines
269 B
Go
17 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
|
||
|
}
|