feat: agregar identidad visual e iconos del proyecto (SVG, ICO, PNG) y desplegar en producción
This commit is contained in:
@@ -56,6 +56,17 @@ func main() {
|
||||
|
||||
mux := http.NewServeMux()
|
||||
|
||||
// Archivos estáticos e iconos
|
||||
fs := http.FileServer(http.Dir("web/static"))
|
||||
mux.Handle("GET /static/", http.StripPrefix("/static/", fs))
|
||||
mux.HandleFunc("GET /favicon.ico", func(w http.ResponseWriter, r *http.Request) {
|
||||
http.ServeFile(w, r, "web/static/favicon.ico")
|
||||
})
|
||||
mux.HandleFunc("GET /favicon.svg", func(w http.ResponseWriter, r *http.Request) {
|
||||
w.Header().Set("Content-Type", "image/svg+xml")
|
||||
http.ServeFile(w, r, "web/static/favicon.svg")
|
||||
})
|
||||
|
||||
// Rutas Web
|
||||
mux.HandleFunc("GET /", h.Index)
|
||||
mux.HandleFunc("GET /v/{id}", h.View)
|
||||
|
||||
Reference in New Issue
Block a user