goshort/internal/server/static/router.go
2023-08-17 14:14:59 -03:00

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
}