transmet/route_handlers.go

19 lines
402 B
Go
Raw Normal View History

2015-04-29 15:25:48 +00:00
package main
import (
"github.com/gorilla/mux"
"net/http"
)
func init_route_handlers() {
http.Handle("/js/", http.StripPrefix("/js/", http.FileServer(http.Dir("js/"))))
http.Handle("/css/", http.StripPrefix("/css/", http.FileServer(http.Dir("css/"))))
http.Handle("/fonts/", http.StripPrefix("/fonts", http.FileServer(http.Dir("fonts/"))))
r := mux.NewRouter()
http.Handle("/", r)
}