package route import ( "forge.cadoles.com/wpetit/guesstimate/internal/config" "github.com/go-chi/chi" ) func Mount(r *chi.Mux, config *config.Config) error { r.Route("/api/v1", func(r chi.Router) { r.Get("/projects/{projectID}", handleGetProject) r.Post("/projects/{projectID}", handleCreateProject) r.Patch("/projects/{projectID}", handlePatchProject) r.Delete("/projects/{projectID}", handleDeleteProject) }) return nil }