Skip to content

Instantly share code, notes, and snippets.

@jaxbot
Created September 1, 2014 02:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaxbot/579baf16f2d6b43d6aab to your computer and use it in GitHub Desktop.
Save jaxbot/579baf16f2d6b43d6aab to your computer and use it in GitHub Desktop.
function *create() {
//this.body = yield render('submit', { referer: this.request.headers.referer, key: key || '' });
var results = yield db.query("INSERT INTO `posts` (bla, bla) VALUES (bla, bla)");
console.log(results);
this.response.end(); //redirect('/post/' + results[0][0].link);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment