added sample app for client-server authentication
This commit is contained in:
14
server.js
14
server.js
@@ -21,6 +21,20 @@ app.use(app.router);
|
||||
app.use(express.static(config.root + '/public'));
|
||||
|
||||
|
||||
/**
|
||||
* API Controllers
|
||||
*/
|
||||
var articles = require('./controllers/articles');
|
||||
var users = require('./controllers/users');
|
||||
|
||||
|
||||
/**
|
||||
* API Models
|
||||
*/
|
||||
var Article = require('./models/article');
|
||||
var User = require('./models/user');
|
||||
|
||||
|
||||
/**
|
||||
* API Routes
|
||||
*/
|
||||
|
Reference in New Issue
Block a user