aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorSam Wilkins <samwilkins333@gmail.com>2019-11-10 14:59:49 -0500
committerSam Wilkins <samwilkins333@gmail.com>2019-11-10 14:59:49 -0500
commit63ea273820eb5ab8388e2744fc7988f10746f25f (patch)
treeea23a6e201316f83d25ad3ad62dec8ed9ba254d7 /src/client
parent36ad83493d2bd58dc6fe62df6002789ccc1b06a1 (diff)
now using environment variable route
Diffstat (limited to 'src/client')
-rw-r--r--src/client/cognitive_services/CognitiveServices.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/cognitive_services/CognitiveServices.ts b/src/client/cognitive_services/CognitiveServices.ts
index af5fb39fc..e74aef998 100644
--- a/src/client/cognitive_services/CognitiveServices.ts
+++ b/src/client/cognitive_services/CognitiveServices.ts
@@ -38,7 +38,7 @@ export enum Confidence {
export namespace CognitiveServices {
const ExecuteQuery = async <D>(service: Service, manager: APIManager<D>, data: D): Promise<any> => {
- return fetch(Utils.prepend(`cognitiveServices/${service}`)).then(async response => {
+ return fetch(Utils.prepend(`environment/${service}`)).then(async response => {
let apiKey = await response.text();
if (!apiKey) {
console.log(`No API key found for ${service}: ensure index.ts has access to a .env file in your root directory`);