Init
This commit is contained in:
14
webcontroller/favicon.go
Normal file
14
webcontroller/favicon.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package webcontroller
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/julienschmidt/httprouter"
|
||||
|
||||
"fornaxian.com/pixeldrain-web/conf"
|
||||
)
|
||||
|
||||
// ServeFavicon yes we need a controller for this
|
||||
func ServeFavicon(w http.ResponseWriter, r *http.Request, p httprouter.Params) {
|
||||
http.ServeFile(w, r, conf.StaticResourceDir()+"favicon.ico")
|
||||
}
|
Reference in New Issue
Block a user