func regMatch() { http.Handle("/match/new", lwutil.ReqHandler(newMatch)) http.Handle("/match/del", lwutil.ReqHandler(delMatch)) http.Handle("/match/list", lwutil.ReqHandler(listMatch)) http.Handle("/match/start", lwutil.ReqHandler(startMatch)) http.Handle("/match/addscore", lwutil.ReqHandler(addScore)) }
func regBench() { http.Handle("/bench/login", lwutil.ReqHandler(benchLogin)) http.Handle("/bench/hello", lwutil.ReqHandler(benchHello)) http.Handle("/bench/dbsingleselect", lwutil.ReqHandler(benchDBSingleSelect)) http.Handle("/bench/dbinsert", lwutil.ReqHandler(benchDBInsert)) http.Handle("/bench/dbinserttx", lwutil.ReqHandler(benchDBInsertTx)) http.Handle("/bench/redisget", lwutil.ReqHandler(benchRedisGet)) http.Handle("/bench/json", lwutil.ReqHandler(benchJson)) http.Handle("/bench/json2", lwutil.ReqHandler(benchJson2)) }
func regAuth() { http.Handle("/auth/login", lwutil.ReqHandler(authLogin)) http.Handle("/auth/logout", lwutil.ReqHandler(authLogout)) http.Handle("/auth/register", lwutil.ReqHandler(authRegister)) http.Handle("/auth/newapp", lwutil.ReqHandler(authNewApp)) http.Handle("/auth/listapp", lwutil.ReqHandler(authListApp)) http.Handle("/auth/setinfo", lwutil.ReqHandler(authSetInfo)) http.Handle("/auth/info", lwutil.ReqHandler(authLoginInfo)) }
func regAuth() { http.Handle("/auth/login", lwutil.ReqHandler(authLogin)) http.Handle("/auth/logout", lwutil.ReqHandler(authLogout)) http.Handle("/auth/register", lwutil.ReqHandler(authRegister)) http.Handle("/auth/info", lwutil.ReqHandler(authLoginInfo)) }
func regDig() { http.Handle("/dig/dig", lwutil.ReqHandler(dig)) }
func regGame() { http.Handle("/game/new", lwutil.ReqHandler(newGame)) http.Handle("/game/del", lwutil.ReqHandler(delGame)) http.Handle("/game/list", lwutil.ReqHandler(listGame)) }
func regRank() { http.Handle("/rank/mine", lwutil.ReqHandler(getMyRank)) }