hi all, I’m having the same problem , I did a quickstart strapi installation, created some content , but am unable to access it via get requests
when I try o access the published content with http://localhost:1337/api/contentpanels
I see:
{
“data”: null,
“error”: {
“status”: 404,
“name”: “NotFoundError”,
“message”: “Not Found”,
“details”: {}
}
}
might be a problem if you have typescript enabled but used a template by strapi. Templates are for some reason in vanilla Javascript so template files are .js, change these to .ts and it solved this problem for me.
I don’t know if all you guys found the solution to this. But I was able to solve this by updating the permissions of the api. In “Strapi Dashboard” select “Settings”, then in section “Users & Permissions Plugin” select “Roles” and edit the “Public” role by clicking on the small pencil. Find the api you want to access and set the permissions accordingly. You should be able to see the content by entering …/api/your_api_names (in plural).