fix someresource endpoint