RUN npm install AFTER PULLING THIS COMMIT!

Added user label to header, gravatar support
This commit is contained in:
Julian Lam
2013-04-29 12:22:02 -04:00
parent 4730bc0f6f
commit cb9a110a5d
5 changed files with 69 additions and 3 deletions

View File

@@ -48,6 +48,10 @@ var SocketIO = require('socket.io').listen(global.server),
// BEGIN: API calls (todo: organize)
// julian: :^)
socket.on('api:user.get', function(data) {
modules.user.get(uid, data.fields);
});
socket.on('user.create', function(data) {
modules.user.create(data.username, data.password, data.email);
});