diff options
author | John Estabrook <jestabro@vyos.io> | 2022-03-27 01:30:21 -0500 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2022-03-27 02:00:41 -0500 |
commit | 9d3acc2b55f2d1c563f1941e59c98c159211dc58 (patch) | |
tree | 68d52759cb98d471e40dff65714daf497d9c2ece /src/services | |
parent | 2cfbb51731eb24c80bd4d697e370dde4972400a5 (diff) | |
download | vyos-1x-9d3acc2b55f2d1c563f1941e59c98c159211dc58.tar.gz vyos-1x-9d3acc2b55f2d1c563f1941e59c98c159211dc58.zip |
graphql: T3993: add unsettable gql option; this is not exposed by CLI
Diffstat (limited to 'src/services')
-rwxr-xr-x | src/services/vyos-http-api-server | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/services/vyos-http-api-server b/src/services/vyos-http-api-server index 06871f1d6..1000d8b72 100755 --- a/src/services/vyos-http-api-server +++ b/src/services/vyos-http-api-server @@ -648,10 +648,12 @@ if __name__ == '__main__': app.state.vyos_keys = server_config['api_keys'] app.state.vyos_debug = server_config['debug'] + app.state.vyos_gql = server_config['gql'] app.state.vyos_strict = server_config['strict'] app.state.vyos_origins = server_config.get('cors', {}).get('origins', []) - graphql_init(app) + if app.state.vyos_gql: + graphql_init(app) try: if not server_config['socket']: |