Added node.js API routes for SP integration