Last active
April 26, 2017 15:05
-
-
Save catarak/ec1bb26a95fd538d0ebb8b2c6b4231cf to your computer and use it in GitHub Desktop.
This file contains hidden or 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(options) { | |
var seneca = this; | |
seneca.add({role:'todo', cmd:'create', createTodo); | |
function createTodo(args, done) { | |
var todoText = args.text; | |
// ... perform todo creation | |
done(null, todo); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment