temporary state
This commit is contained in:
parent
132cdd3bd7
commit
510f7fc4d7
@ -6,23 +6,23 @@ sources:
|
||||
handler:
|
||||
graphql:
|
||||
endpoint: https://directus.andert.me/graphql
|
||||
source: ./public/schemas/directus.graphql
|
||||
source: ./src/schemas/directus.graphql
|
||||
operationHeaders:
|
||||
Authorization: Bearer {env.DIRECTUS_API}
|
||||
additionalResolvers:
|
||||
- ./src/resolvers/directus_subscriptions.js
|
||||
- ./src/resolvers/subs_directus.js
|
||||
|
||||
# - name: Cloudron
|
||||
# handler:
|
||||
# openapi:
|
||||
# endpoint: https://my.andert.me/api/v1
|
||||
# source: ./public/schemas/cloudron.json
|
||||
# source: ./src/schemas/cloudron.json
|
||||
# operationHeaders:
|
||||
# Authorization: Bearer {env.CLOUDRON_API}
|
||||
# - name: Gitea
|
||||
# handler:
|
||||
# openapi:
|
||||
# endpoint: https://git.andert.me/api/v1
|
||||
# source: ./public/schemas/gitea.yml
|
||||
# source: ./src/schemas/gitea.yml
|
||||
# operationHeaders:
|
||||
# Authorization: Bearer {env.GITEA_API}
|
||||
|
@ -24,7 +24,7 @@ async function fetchSchema() {
|
||||
});
|
||||
|
||||
// Save the schema to a file
|
||||
fs.writeFileSync('./public/schemas/directus.graphql', schema);
|
||||
fs.writeFileSync('./src/schemas/directus.graphql', schema);
|
||||
}
|
||||
|
||||
fetchSchema().catch(console.error);
|
||||
|
@ -8,7 +8,7 @@ const path = require('path')
|
||||
const pubsub = new PubSub();
|
||||
|
||||
// Generate an absolute path to the schema file
|
||||
const schemaFilePath = path.resolve(process.cwd(), 'public/schemas/directus.graphql');
|
||||
const schemaFilePath = path.resolve(process.cwd(), 'src/schemas/directus.graphql');
|
||||
|
||||
// Read the schema file
|
||||
const schema = fs.readFileSync(schemaFilePath, 'utf8');
|
Reference in New Issue
Block a user