[resource][gist] updated to support http view middleware