R
R
Roman2018-07-23 01:52:27
API
Roman, 2018-07-23 01:52:27

How to build dynamic paths from api in nuxt(Vue)?

There is a site it has a simple api,
GET /pages list of all pages ( json array with names , paths and template [*.Vue])
GET /PAGE/:name specific page data (json array with text, title and path)
I want to do application on Vue(nuxt) , which will, upon request, receive a list of all pages, if the requested page is in the array, open a specific template from the array. Upon opening the page, another request is made to get the page data and the page is filled. I can't figure out how to get routes via axios.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Anton, 2018-07-23
@GUY

The documentation is quite intelligible

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question