change fetch to require in resource params