transmet/route_handlers.go

19 lines
402 B
Go

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)
}