mirror of
https://github.com/trafficlunar/api.git
synced 2026-06-27 22:24:08 +00:00
feat: favicon
This commit is contained in:
parent
25842d4bdd
commit
af790e5765
5 changed files with 23 additions and 35 deletions
|
|
@ -59,6 +59,9 @@ func NewRouter() {
|
|||
"url": "https://github.com/trafficlunar/api",
|
||||
})
|
||||
})
|
||||
r.Get("/favicon.ico", func(w http.ResponseWriter, r *http.Request) {
|
||||
http.ServeFile(w, r, "./favicon.ico")
|
||||
})
|
||||
|
||||
r.Get("/hit", handler.HandleGetHitCounter)
|
||||
r.With(httprate.LimitByRealIP(1, time.Hour)).Patch("/hit", handler.HandlePatchHitCounter)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue