Example #1
0
func start(w http.ResponseWriter, r *http.Request, t *auth.Token) error {
	w.Header().Set("Content-Type", "text")
	u, err := t.User()
	if err != nil {
		return err
	}
	appName := r.URL.Query().Get(":app")
	rec.Log(u.Email, "start", appName)
	app, err := getApp(appName, u)
	if err != nil {
		return err
	}
	return app.Start(w)
}
Example #2
0
func start(w http.ResponseWriter, r *http.Request, t auth.Token) error {
	w.Header().Set("Content-Type", "text")
	process := r.URL.Query().Get("process")
	u, err := t.User()
	if err != nil {
		return err
	}
	appName := r.URL.Query().Get(":app")
	rec.Log(u.Email, "start", "app="+appName)
	app, err := getAppFromContext(appName, u, r)
	if err != nil {
		return err
	}
	return app.Start(w, process)
}