initial commit. Cloned timetracker repository
This commit is contained in:
17
app/delivery/web/public/favicon.go
Normal file
17
app/delivery/web/public/favicon.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package public
|
||||
|
||||
import (
|
||||
"git.ma-al.com/goc_marek/timetracker/app/config"
|
||||
"git.ma-al.com/goc_marek/timetracker/assets"
|
||||
"github.com/gofiber/fiber/v3"
|
||||
)
|
||||
|
||||
func Favicon(app *fiber.App, cfg *config.Config) {
|
||||
// Favicon check endpoint
|
||||
app.Get("/favicon.ico", func(c fiber.Ctx) error {
|
||||
return c.SendFile("img/favicon.ico", fiber.SendFile{
|
||||
FS: assets.FS(),
|
||||
})
|
||||
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user