16 lines
200 B
Go
16 lines
200 B
Go
package staticssterver
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/go-chi/chi/v5"
|
|
)
|
|
|
|
func NewStaticRouter(h *StaticHandler) http.Handler {
|
|
mux := chi.NewRouter()
|
|
|
|
mux.Get("/*", h.ServeFiles)
|
|
|
|
return mux
|
|
}
|