Updated REST API routes to match backend