I have an API coded in Nodejs and an AngularJS app statically served by the same server.
I need to host another AngularJS app which should be served by the same server.
How can I do that? Can Restify or Express serve 2 static apps?
I used
server.get(/\/shared\/?.*/, restify.serveStatic({
directory: __dirname + '/shared/.build',
default: 'index.html'
}));
doesn't work if I write
http://127.0.0.1:3000/shared