serve:
endpoint: /api
additionalEnvelopPlugins: "./src/envelopePlugin.ts"
sources:
- name: Directus
handler:
graphql:
endpoint: https://directus.andert.me/graphql
source: ./src/schemas/directus.graphql
operationHeaders:
Authorization: "Bearer {env.DIRECTUS_API}"
connectionParams:
access_token: "Bv5RknRvv5AZouxcYdBJgVOe3ZC493Y3"
# - name: Cloudron
# handler:
# openapi:
# endpoint: https://my.andert.me/api/v1
# source: ./src/schemas/cloudron.json
# operationHeaders:
# Authorization: Bearer {env.CLOUDRON_API}
# - name: Gitea
# endpoint: https://git.andert.me/api/v1
# source: ./src/schemas/gitea.yml
# Authorization: Bearer {env.GITEA_API}