Encapsulate Ionic within NodeJS


#1

Hello, I want to upload the www folder to a server with NodeJS, the problem is that when I try to redirect the local path to the index of www that generates ionic, it conflicts with the ionic navigation

app.get (’/’, (req, res) => {
res.sendFile ($ {__ dirname} / assets / index.html)
})

GET / 200 6.372 ms - 1912
GET /cordova.js 404 1,454 ms - 149
GET /assets/js/jquery.dataTables.js 404 0.388 ms - 169
GET /build/main.css 404 0.424 ms - 153
GET /build/polyfills.js 404 0.796 ms - 157
GET /build/vendor.js 404 0.232 ms - 154
GET /build/main.js 404 0.210 ms - 152
GET /assets/js/jquery.js 404 0.275 ms - 158
GET /assets/js/jquery.dataTables.js 404 0.716 ms - 169

How I can avoid this