Nuxt.js plus express as the background interface, how to set the total route of Nuxt?

the default route is app.use (nuxt.render);

the display effect is 127.0.0.1virtual 3000

but I want 127.0.0.1:3000/admin

how should I change it?

app.use ("/ admin",nuxt.render) will report the file under _ nuxt/

if it is used in this way.

how should this be set?


try

router.get('/admin',function(req,res){});
app.use(router,nuxt.render);

404, have you set the express static directory


but I found a way, that is, I don't know if it's safe, that is, the files in pages are put in / page/admin/, and the route automatically changes to admin, but / if it still accesses the default template, add a

to the nuxt.render.
app.get('/',function (req,res) {
  res.send('123')
})

add a middleware,middleware to the index.vue to redirect to the unaware

of the admin, page.
Menu