Added GraphiQL disable.

This commit is contained in:
DebaucheryLibrarian
2023-06-19 03:28:55 +02:00
parent 123d4155b4
commit 18f75595da
4 changed files with 3 additions and 2 deletions

View File

@@ -27,7 +27,7 @@ function initPostgraphile(credentials) {
// watchPg: true,
disableDefaultMutations: true,
dynamicJson: true,
graphiql: true,
graphiql: config.database.graphiql,
enhanceGraphiql: true,
allowExplain: () => true,
// simpleCollections: 'only',

View File

@@ -72,6 +72,7 @@ async function initServer() {
const store = new KnexSessionStore({ knex });
app.set('view engine', 'ejs');
app.disable('x-powered-by');
router.use('/media', express.static(config.media.path));
router.use(express.static('public'));