Added a node route for handling api/messages route