genuine-moccasinG
Refine2y ago
7 replies
genuine-moccasin

Can not get Strapi single content end point to load

I can't seem to get my single content end point to load. I have tried using useOne with the resource set to settings but it never loads properly. What it looks like is the resource includes the trailing / at the end so its api/resource/ and that wont work as it needs to just be api/resource.

So I then tried not setting the resource and just setting an id as the resource and that generated the api request as api//resource

Single content data from strapi is generated by making an api call to the uid and it auto sets the resource singular name as the uid for making api calls so in this instance the only way to populate the data is by making a call to api/resource and I am struggling to figure out how to do that.
Was this page helpful?