knew node.js and expressed a few days ago. I feel they are really cool, but something is missing.
I looked at the official site, but it just points to the Connect API. But I cannot find a document that will teach me how to use a simple function like expressHTTPServer.get ().
Of course I am reading the nodejs API, but Express and Connect seem to greatly expand them.
For example, on the official Express website:
app = express.createServer();
app.get('/user/:id', function(req, res, next){
loadUser(req.params.id, function(err, user){
if (err)
return next(err);
res.send('Viewing user of csser.com ' + user.name); }
);
});
But unfortunately, not a single API document tells me that there is expressHTTPServer.get and that these are callback arguments.
I like to read examples, but I really need an API to learn a new language / library / framework, does anyone help?
source
share