mirror of
https://github.com/ditatompel/xmr-remote-nodes.git
synced 2025-01-08 05:52:10 +07: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"
|
||||||
"github.com/gofiber/fiber/v2/middleware/cors"
|
"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/logger"
|
||||||
"github.com/gofiber/fiber/v2/middleware/recover"
|
"github.com/gofiber/fiber/v2/middleware/recover"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
@ -74,6 +75,10 @@ func serve() {
|
||||||
AllowCredentials: true,
|
AllowCredentials: true,
|
||||||
}))
|
}))
|
||||||
|
|
||||||
|
app.Use(favicon.New(favicon.Config{
|
||||||
|
File: "internal/handler/views/assets/favicon.ico",
|
||||||
|
URL: "/favicon.ico",
|
||||||
|
}))
|
||||||
app.Use("/assets", views.EmbedAssets())
|
app.Use("/assets", views.EmbedAssets())
|
||||||
app.Routes()
|
app.Routes()
|
||||||
|
|
||||||
|
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Loading…
Reference in a new issue