Removed polluting global vars in express routes

Added ‘API’ endpoint testing route