pp_projekt/router.go

19 lines
383 B
Go
Raw Normal View History

2019-01-07 23:16:26 +01:00
package main
2018-11-24 20:48:46 +01:00
2019-01-08 20:08:33 +01:00
//func NewRouter() *mux.Router {
// router := mux.NewRouter().StrictSlash(true)
// for _, route := range routes {
// var handler http.Handler
//
// handler = route.HandlerFunc
// handler = logger.Logger(handler, route.Name)
//
// router.
// Methods(route.Method).
// Path(route.Pattern).
// Name(route.Name).
// Handler(handler)
// }
//
// return router
//}