16 lines
214 B
Go
16 lines
214 B
Go
|
package index
|
||
|
|
||
|
import (
|
||
|
"html/template"
|
||
|
|
||
|
"github.com/go-chi/chi"
|
||
|
)
|
||
|
|
||
|
func GUIRoutes(s Service, t template.Template) *chi.Mux {
|
||
|
router := chi.NewRouter()
|
||
|
|
||
|
router.Get("/", IndexGUIHandler(s, t))
|
||
|
|
||
|
return router
|
||
|
}
|