mirror of
https://github.com/ditatompel/xmr-remote-nodes.git
synced 2024-11-16 17:07:36 +00:00
feat: Added favicon
This commit is contained in:
parent
f6adb40b3f
commit
30aa8d80dc
2 changed files with 5 additions and 0 deletions
|
@ -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()
|
||||
|
||||
|
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Loading…
Reference in a new issue