Changed http to resource