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.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b2eab7-2bc37.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b2eab7-2bc37.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?