Created
September 1, 2014 02:36
-
-
Save jaxbot/579baf16f2d6b43d6aab 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
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