forked from Cliffbreak/tsviewer
14 lines
176 B
Go
14 lines
176 B
Go
|
package server
|
||
|
|
||
|
import (
|
||
|
"github.com/go-chi/chi"
|
||
|
)
|
||
|
|
||
|
func APIRoutes(s Service) *chi.Mux {
|
||
|
router := chi.NewRouter()
|
||
|
|
||
|
router.Get("/info", InfoAPIHandler(s))
|
||
|
|
||
|
return router
|
||
|
}
|