This is my app folder structure with the angular-client folder
The below picture shows the issue where when I server the index file of angular app from express server , all the gets are relative to the express server app.
This is index.js server code
var express = require('express');
var app = express();
var path = require('path');
app.listen(3000,function(){
console.log('Server started on port 3000');
});
app.get('/',function(req,res){
res.sendFile(path.join(__dirname,'angular-client')+'/src/index.html');
});
Could anyone find a solution ?