Created
May 26, 2017 00:12
-
-
Save vitorhidalgo/546d21a3ec67675d52667b2edd2709a9 to your computer and use it in GitHub Desktop.
app/controllers/user.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(app) | |
{ | |
var controller = | |
{ | |
users : function(req, res) | |
{ | |
res.render( 'users/index' ); | |
}, | |
add : function(req, res) | |
{ | |
res.json( { 'name' : 'vitor', 'password' : 'asdf' } ); | |
}, | |
edit : function(req, res) | |
{ | |
res.render( 'users/edit' ); | |
} | |
}; | |
return controller; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment