Adding json route for frontend to call