diff --git a/backend/src/index.ts b/backend/src/index.ts index e63f80827..309cf4efa 100644 --- a/backend/src/index.ts +++ b/backend/src/index.ts @@ -9,6 +9,14 @@ import CONFIG from './config' async function main() { const { app } = await createServer() + if (CONFIG.FEDERATION_COMMUNITY_ACTIVATE_ENDPOINTS) { + // eslint-disable-next-line no-console + console.log(`activate community graphql-endpoints for federation-handshake...`) + const { endpoints} = await activateEndpoints() + // eslint-disable-next-line no-console + console.log(`activated endpoints: ${JSON.stringify(endpoints)}`) + } + app.listen(CONFIG.PORT, () => { // eslint-disable-next-line no-console console.log(`Server is running at http://localhost:${CONFIG.PORT}`) diff --git a/backend/src/server/activateEndpoints.ts b/backend/src/server/activateEndpoints.ts new file mode 100644 index 000000000..6f56c32d5 --- /dev/null +++ b/backend/src/server/activateEndpoints.ts @@ -0,0 +1,9 @@ +// config +import CONFIG from '@/config' + +// graphql +import schema from '@/graphql/schema' + +const activateEndpoints = async ( + +) \ No newline at end of file