diff options
author | Daniil Baturin <daniil@vyos.io> | 2022-03-27 11:47:15 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-27 11:47:15 +0300 |
commit | 34814e576adbe6aa3e863b6fd7404dbe54cdba55 (patch) | |
tree | aeaa3a023617707d2593db603acecf64fdbe83ab /src/services/vyos-http-api-server | |
parent | 6ad04c53e296cbc445474f1dcb0ceaba64af47f9 (diff) | |
parent | 3665d9f8dc9435b70084a5c185fb8bd27023fa4c (diff) | |
download | vyos-1x-34814e576adbe6aa3e863b6fd7404dbe54cdba55.tar.gz vyos-1x-34814e576adbe6aa3e863b6fd7404dbe54cdba55.zip |
Merge pull request #1254 from jestabro/eq-gql-test-node
graphql: T3993: add unsettable gql option; this is not exposed by CLI
Diffstat (limited to 'src/services/vyos-http-api-server')
-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']: |