go-tsviewer/features/web/index/routes.go

16 lines
214 B
Go
Raw Normal View History

2019-01-17 21:09:41 +00:00
package index
import (
"html/template"
"github.com/go-chi/chi"
)
2019-01-21 17:53:33 +00:00
func GUIRoutes(s Service, t template.Template) *chi.Mux {
2019-01-17 21:09:41 +00:00
router := chi.NewRouter()
2019-01-21 17:53:33 +00:00
router.Get("/", IndexGUIHandler(s, t))
2019-01-17 21:09:41 +00:00
return router
}