The beauty about node is that it's so simple to extend and add the functionality you need. No magic, no huge framework to learn.
The little things you get though work awesomely well and are a pleasure to use.
You can still have a look at it. As I said though, it's really ugly and I should really split it up into multiple files, factor out the common stuff and make the whole thing more clear.
Still. Here goes:
http://github.com/pilif/tempalias/blob/master/lib/tempalias_...
Lines 30 and following handle calls to /aliases (in my case, that's just a POST to /aliases to create an alias - later I'd add PUT to /aliases/<id> to update it and DELETE /aliases/<id> to delete it - assuming that a correct update key (part of the response to creation) has been created.
As I said: Butt-ugly code. Don't do it like this - factor out common stuff, create smaller functions for the various parts of the needed setup.
I can give you this, it is prettier than any code I have written in Node (if it is not apparent from my posts, I have not worked in Node).