RegisterStruct modData = (RegisterStruct) StdRx.read(json,RegisterStruct.class);
//TODO data checker
return net.virtalabs.auth.mod.register.Register.run(modData);
} else if(action.equals("checkToken")) {
//checkToken
CheckTokenStruct modData = (CheckTokenStruct) StdRx.read(json, CheckTokenStruct.class);
return net.virtalabs.auth.mod.checkToken.CheckToken.run(modData);
} else {
throw new AppException("No such action here",C.NO_SUCH_ACTION);
}
}