NodeJS Express – separate routes on two ports
Based on Explosion Pills suggestion above, I modified the code in roughly this way: var express = require(‘express’); var things = []; var app = express(); var admin_app = express(); var port = 8080; var admin_port = 8081; app.post(‘/factory/’, function(req, res) { //Create a thing and add it to the thing array }); //Assume more … Read more