Tags » Tyrion

what's the different between app.post and app.use in nodes express?

I use command curl -H "Content-Type: application/json" -d '{"name":"sparc_core","port":["p1", "p2"]}' http://ift.tt/1uTnqE7 to test nodejs server.

At first, my code is as follows:

app.post('/add_module', bodyParser.json()); 
app.post('/add_module', bodyParser.urlencoded());
app.post('/add_module', function(req, res, next) {
    req.body = JSON.parse(req.body.data);
app.post('/add_module', function(req, res) {
    console.log("Start submitting");
... 238 more words
Recent Questions - Stack Overflow

Game of Thrones Season 4 Overview: A Return to Mhysa

Major Spoilers Ahead

Game of Thrones is the epitome of photographic, long-form, storytelling. It’s easily the best thing on TV and that is because it builds the world up nicely. 1,668 more words


“Let me give you some advice, bastard: Never forget what you are. The rest of the world will not. Wear it like armor, and it can never be used to hurt you.”

18 more words

[Re-Read] A Clash of Kings - Tyrion II


Tyrion shares wine with Lord Janos, whom he has gotten quite drunk. Lord Janos had given Tyrion a list of six men to replace him as head of the City Watch and now tells Tyrion that Allar Deem would be the best man for the job. 1,771 more words

A Song Of Ice And Fire

Tyrion Lannister

Hello everyone!

Life has been crazy busy lately so I wanted to post at least a small drawing while I have some free time. I had the need to draw Game of Thrones’ Tyrion Lannister a few weeks back and decided to make a quick sketch. 26 more words

Dragon Wing

You Know Nothing...

TellTale Games revealed the first trailer for their upcoming Game of Thrones game series. Personally I can’t wait, but while I saw lots of familiar and friendly faces, I can’t help but notice the absence of a few notable characters. 6 more words

Video Games