summaryrefslogtreecommitdiff
path: root/src/services/vyos-http-api-server
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2022-10-21 12:16:15 -0500
committerGitHub <noreply@github.com>2022-10-21 12:16:15 -0500
commiteeb7810f4240a2c1d1da0bcc6825ae9c75ca693e (patch)
tree185852648551dd188f23da46c8e6c867ecfdd4de /src/services/vyos-http-api-server
parentc8dbd6ce6cd466bd7903987e58b885f0e92d1691 (diff)
parent89fbe73b9fb9ad178a2a35bdf9c7c477dc72f054 (diff)
downloadvyos-1x-eeb7810f4240a2c1d1da0bcc6825ae9c75ca693e.tar.gz
vyos-1x-eeb7810f4240a2c1d1da0bcc6825ae9c75ca693e.zip
Merge pull request #1610 from jestabro/migrate-graphql
graphql: T4768: change name of api child node from 'gql' to 'graphql'
Diffstat (limited to 'src/services/vyos-http-api-server')
-rwxr-xr-xsrc/services/vyos-http-api-server10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/services/vyos-http-api-server b/src/services/vyos-http-api-server
index 4ace981ca..632c1e87d 100755
--- a/src/services/vyos-http-api-server
+++ b/src/services/vyos-http-api-server
@@ -688,16 +688,16 @@ if __name__ == '__main__':
app.state.vyos_debug = server_config['debug']
app.state.vyos_strict = server_config['strict']
app.state.vyos_origins = server_config.get('cors', {}).get('allow_origin', [])
- if 'gql' in server_config:
- app.state.vyos_gql = True
- if isinstance(server_config['gql'], dict) and 'introspection' in server_config['gql']:
+ if 'graphql' in server_config:
+ app.state.vyos_graphql = True
+ if isinstance(server_config['graphql'], dict) and 'introspection' in server_config['graphql']:
app.state.vyos_introspection = True
else:
app.state.vyos_introspection = False
else:
- app.state.vyos_gql = False
+ app.state.vyos_graphql = False
- if app.state.vyos_gql:
+ if app.state.vyos_graphql:
graphql_init(app)
try: