Exemplo n.º 1
0
func MakeClientConfig(rt *mux.Router) (config *ClientConfig, err error) {
	newViewURL, err := rt.GetRoute(trackCreateView).URL("instance", ":instance")
	if err != nil {
		return
	}
	return &ClientConfig{
		NewViewURL: newViewURL.RequestURI(),
	}, nil
}