NodeJS Express - separate routes on two ports
I have an express server, and while building it created several "helper" functions on their own routes. I'd like those routes to be accessed on a different port. Is there anyway to do this in express? In the code below, the "/factory" route (and other functionality) would be on one port, and the helper routes of "/killallthings", "/listallthings", and "/killserver" would be on a separate port. Here is a simplified version of the code: var express = require('express'); var things = []; var app = express(); var port = 8080; app.post('/factory/', function(req, res) { //Create a thing and add it