A continuation of HomeBox the inventory and organization system built for the Home User
define constants at the top
Haydenc2613a03ca84
diff --git a/backend/app/api/routes.go b/backend/app/api/routes.goindex 37cc2eae..1abed0b7 100644--- a/backend/app/api/routes.go+++ b/backend/app/api/routes.go@@ -18,11 +18,15 @@ import (httpSwagger "github.com/swaggo/http-swagger" // http-swagger middleware)-//go:embed all:public/*-var public embed.FS-const prefix = "/api"+var (+ ErrDir = errors.New("path is dir")++ //go:embed all:public/*+ public embed.FS+)+// registerRoutes registers all the routes for the APIfunc (a *app) newRouter(repos *repo.AllRepos) *chi.Mux {registerMimes()@@ -99,8 +103,6 @@ func (a *app) LogRoutes(r *chi.Mux) {}}-var ErrDir = errors.New("path is dir")-func registerMimes() {err := mime.AddExtensionType(".js", "application/javascript")if err != nil {