move auth and favicon form main to handlers, linting
This commit is contained in:
18
handlers/favicon.go
Normal file
18
handlers/favicon.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package handlers
|
||||
|
||||
import (
|
||||
_ "embed"
|
||||
|
||||
"github.com/gofiber/fiber/v2"
|
||||
"github.com/gofiber/fiber/v2/middleware/favicon"
|
||||
)
|
||||
|
||||
//go:embed favicon.ico
|
||||
var faviconData string
|
||||
|
||||
func Favicon() fiber.Handler {
|
||||
return favicon.New(favicon.Config{
|
||||
Data: []byte(faviconData),
|
||||
URL: "/favicon.ico",
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user