Example #1
0
func handleRoutes(mux *mux.Mux) {
	mux.Handle("/", routes.MainRoute())
	mux.Handle("/static/", routes.Modules())
	mux.Handle("/public/", routes.Public())
	mux.Handle("/public/css/", routes.CSS())
	mux.HandleFunc("/api/search", routes.Search)
}
Example #2
0
func handleRoutes(mux *mux.Mux) {
	mux.Handle("/", routes.MainRoute())
	mux.Handle("/static/", routes.Modules())
	mux.Handle("/public/", routes.Public())
	mux.Handle("/public/css/", routes.CSS())
}