// championshipStartEventHandler begins a championship event given by its ID
championshipStartEventHandler begins a championship event given by its ID
// championshipStartEventHandler begins a championship event given by its ID
func championshipStartEventHandler(w http.ResponseWriter, r *http.Request) {
	err := championshipManager.StartEvent(chi.URLParam(r, "championshipID"), chi.URLParam(r, "eventID"))
	if err != nil {
		logrus.Errorf("Could not start championship event, err: %s", err)
		AddErrFlashQuick(w, r, "Couldn't start the Event")
	} else {
		AddFlashQuick(w, r, "Event started successfully!")
		time.Sleep(time.Second * 1)
	}
	http.Redirect(w, r, r.Referer(), http.StatusFound)
}
func championshipStartEventHandler ( w http . ResponseWriter , r * http . Request ) { err := championshipManager . StartEvent ( chi . URLParam ( r , " " ) , chi . URLParam ( r , " " ) ) if err != nil { logrus . Errorf ( " " , err ) AddErrFlashQuick ( w , r , " " ) } else { AddFlashQuick ( w , r , " " ) time . Sleep ( time . Second * 1 ) } http . Redirect ( w , r , r . Referer ( ) , http . StatusFound ) }
championshipStartEventHandler begins a championship event given by its ID
championshipStartEventHandler begins a championship event given by its ID