routes.js 199 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 9 10 11 var api = require('./routes/api'); module.exports = function (app) { app.use('/api/', api) app.get('*', function (req, res) { res.sendfile('./public/views/index.html'); }); };