rails style rounter for nodejs connect