I don't think you need to declare `path` as a variable here, versus just applying this string append when creating the resource object.