Added /api/delegation to root index.js