diff --git a/cmd/server/serve.go b/cmd/server/serve.go index 073d838..c637912 100644 --- a/cmd/server/serve.go +++ b/cmd/server/serve.go @@ -16,6 +16,7 @@ import ( "github.com/gofiber/fiber/v2" "github.com/gofiber/fiber/v2/middleware/cors" + "github.com/gofiber/fiber/v2/middleware/favicon" "github.com/gofiber/fiber/v2/middleware/logger" "github.com/gofiber/fiber/v2/middleware/recover" "github.com/spf13/cobra" @@ -74,6 +75,10 @@ func serve() { AllowCredentials: true, })) + app.Use(favicon.New(favicon.Config{ + File: "internal/handler/views/assets/favicon.ico", + URL: "/favicon.ico", + })) app.Use("/assets", views.EmbedAssets()) app.Routes() diff --git a/frontend/static/favicon.ico b/internal/handler/views/assets/favicon.ico similarity index 100% rename from frontend/static/favicon.ico rename to internal/handler/views/assets/favicon.ico