Finished API service and sorted out client side and server side routes.