Convert routing table in express.js routes