mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
first idea to introduce 'community entpoint activation'
This commit is contained in:
parent
c374fff20f
commit
24626c0363
@ -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}`)
|
||||
|
||||
9
backend/src/server/activateEndpoints.ts
Normal file
9
backend/src/server/activateEndpoints.ts
Normal file
@ -0,0 +1,9 @@
|
||||
// config
|
||||
import CONFIG from '@/config'
|
||||
|
||||
// graphql
|
||||
import schema from '@/graphql/schema'
|
||||
|
||||
const activateEndpoints = async (
|
||||
|
||||
)
|
||||
Loading…
x
Reference in New Issue
Block a user