Closed raisiqueira closed 6 years ago
Hi! for the menus via WP-API, we can use WP Rest API Menus, but we have a problem. The endpoint don'ts /wp-json/wp/v2/, is /menus/v1/menus.
/wp-json/wp/v2/
/menus/v1/menus
Possible solution: In the app.js file, change the API_BASE_PATH for only /wp-json, instead of: /wp-json/wp/v2/.
app.js
API_BASE_PATH
/wp-json
done that, we created a module to get the menu with vuex. 😄
I'm using it that way, but with NuxtJS. Can I make a pull request?
I would really like to see this working. New to Vue and struggling quite a bit on how to create new routes from my Wordpress menu.
Yes, PLEASE make a pull request @raisiqueira
Hi! for the menus via WP-API, we can use WP Rest API Menus, but we have a problem. The endpoint don'ts
/wp-json/wp/v2/
, is/menus/v1/menus
.Possible solution: In the
app.js
file, change theAPI_BASE_PATH
for only/wp-json
, instead of:/wp-json/wp/v2/
.done that, we created a module to get the menu with vuex. 😄
I'm using it that way, but with NuxtJS. Can I make a pull request?