Express 4 middleware not calling routes on DigitalOcean server
问题 I'm messing around with creating an API with io.js and Express 4, and I have no idea why this isn't working. I am currently running the program on a DigitalOcean droplet (Ubuntu 14.04) and it is not calling the next() method never gets called/executed. The program is being routed to by a reverse proxy with nginx at https://<redacted>/asdf . var express = require('express'); var app = express(); var port = process.env.PORT || 3000; var router = express.Router(); router.use(function(req, res,