/id endpoint return html if visited with a browser and JSON otherwise
html to render messages by their id