mattmilburn / strapi-plugin-menus

A plugin for Strapi CMS to customize the structure of menus and menu items.
MIT License
112 stars 28 forks source link

Menu-items returns a 404 #123

Open abuhelos opened 1 year ago

abuhelos commented 1 year ago

/api/menus, /api/menus:id, /api/menus/items/:id all work. For some reason I get a 404 returned when I try and access /api/menus/items. I have all 4 enabled public, have not made any modifications this is out of the box.

strapi-plugin-menus: "^1.4.3" STRAPI VERSION: v4.12.7 NODE VERSION: v18.17.1

Screen Shot 2023-08-29 at 2 42 47 PM Screen Shot 2023-08-29 at 2 44 40 PM

mattmilburn commented 11 months ago

Hi @abuhelos It looks like you're getting this 404 because the paths /api/menus/items and /api/menus/items/:id are not valid routes.

In case you are wanting to populate the items prop for a menu, you'll need to use a ?populate param as described in the API usage section of the docs.

abuhelos commented 11 months ago

Hi @mattmilburn, thanks for the clarification. I wasn't sure if it was supposed to work or not because the roles section in settings said it was a route. I ended up figuring out how to populate the menu items.

Screenshot 2023-11-19 at 1 45 11 PM

mattmilburn commented 11 months ago

Ahh how strange! Well thanks for posting this, I'll check it out and see if I can resolve it 🙂