DEV Community

Discussion on: Building a URL shortening service with NodeJS and MongoDB. Deploy to Azure.

Collapse
 
petermezes profile image
Peter Mézeš

Nice one, thank you!

Btw, that error handling:

catch (error) {
        ///catch any error, and return server error
        return res.status(500).json({ok : false, error : 'Server error'});
}

It is like programming version of: - What is wrong darling? - Nothing!

All good, just made me giggle a bit :)