18 lines
216 B
Go
18 lines
216 B
Go
|
package web
|
||
|
|
||
|
import (
|
||
|
"net/http"
|
||
|
|
||
|
"github.com/go-chi/chi/v5"
|
||
|
)
|
||
|
|
||
|
func WebRouter() http.Handler {
|
||
|
r := chi.NewRouter()
|
||
|
r.Get("/", getIndex)
|
||
|
return r
|
||
|
}
|
||
|
|
||
|
func getIndex(w http.ResponseWriter, req *http.Request) {
|
||
|
|
||
|
}
|