Added rest api to app. Added route to get objects.