use index.js as api-entrypoint.