05 - Server Update
Overview
Referencing the Middleware
sequelize.sync(); // tip: {force: true} for resetting tables
app.use(bodyParser.json());
app.use(require('./middleware/headers')); //1 Add it here.
app.use('/test', test);
app.use('/api/user', user);
app.listen(3000, function(){
console.log('App is listening on 3000.')
});Analysis
Test Client
Further Study

Last updated