summaryrefslogtreecommitdiff
path: root/src/services
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2022-10-21 08:41:26 -0500
committerJohn Estabrook <jestabro@vyos.io>2022-10-21 08:46:25 -0500
commit89fbe73b9fb9ad178a2a35bdf9c7c477dc72f054 (patch)
tree185852648551dd188f23da46c8e6c867ecfdd4de /src/services
parentc8dbd6ce6cd466bd7903987e58b885f0e92d1691 (diff)
downloadvyos-1x-89fbe73b9fb9ad178a2a35bdf9c7c477dc72f054.tar.gz
vyos-1x-89fbe73b9fb9ad178a2a35bdf9c7c477dc72f054.zip
graphql: T4768: change name of api child node from 'gql' to 'graphql'
Diffstat (limited to 'src/services')
-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: