Skip to content

Commit ed9f013

Browse files
committed
favicon route and icon
1 parent f3bc8fa commit ed9f013

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

cmd/routes.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ func (app *Config) Routes() {
2020
})
2121
})
2222

23+
app.Router.GET("/favicon.ico", func(ctx *gin.Context) {
24+
//return icon file
25+
ctx.FileFromFS("favicon.ico", http.Dir("."))
26+
})
27+
2328
app.Router.POST("/token", postTokenHandler)
2429

2530
app.Router.NoRoute(func(ctx *gin.Context) {

favicon.ico

15 KB
Binary file not shown.

0 commit comments

Comments
 (0)