Implement api endpoint to get orders

First pass at this endpoint
We've agreed to use `module.exports` and to export at the bottom rather than top