Problem creating a new GET request to findOne by slug

I’m not an expert in how strapi works, but I don’t think you can do that!
The reason is the way of how routes are selected by a regex, there can be only one combination of /posts/:param, whatever that param will be. So, in your case post/config/routes.json will choose the first route, which is bound to :id and will give you the 404 response.

1 Like