Add first api route

First attempt at writing a test for the handlers, need to get
better at this =)