Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
let Siren = require('super-siren');
let follow = Siren.Helper.follow;
let performAction = Siren.Helper.performAction;
Siren.get(uriOfTodoItem)
.then(performAction('complete'))
.then(res => {
/* Process Siren action HTTP response here */
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.