added list route for API - see #17
added view route for api as specified in #17