Skip to content

Commit

Permalink
Moving to BraidApi - this commit for DB calls
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon committed Aug 12, 2024
2 parents 174c5e6 + ce5a29a commit f24feb1
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 97 deletions.
48 changes: 0 additions & 48 deletions api/cdbkey/index.js

This file was deleted.

File renamed without changes.
File renamed without changes.
19 changes: 0 additions & 19 deletions api/joinkey/function.json

This file was deleted.

10 changes: 0 additions & 10 deletions api/tsconfig.json

This file was deleted.

30 changes: 11 additions & 19 deletions local-web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,26 @@ var express = require("express");

var login = require("./api/login/index");
var auth = require("./api/auth/index");
var cdbkey = require("./api/cdbkey/index");
var fluidKey = require("./api/fluidkey/index");
var aiKey = require("./api/aikey/index");

var app = express();

app.get('/api/joinkey', function routeHandler(req: any, res: any) {
console.log ('/api/joinkey');
if (req.query.session == process.env.SessionKey) {
res.send(process.env.SessionKey);
}
console.log ('/api/joinkey end');
app.get('/api/fluidkey', async function routeHandler(req: any, res: any) {

console.log ('/api/fluidkey');
if ((req.query.session === process.env.SessionKey) || (req.query.session === process.env.SessionKey2)) {
res.send (process.env.ConversationKey);
}
});

app.get('/api/aikey', function routeHandler(req: any, res: any) {
app.get('/api/aikey', async function routeHandler(req: any, res: any) {
console.log ('/api/aikey');
if (req.query.session == process.env.SessionKey) {
res.send(process.env.AzureAiKey);
if ((req.query.session === process.env.SessionKey) || (req.query.session === process.env.SessionKey2)) {
res.send (process.env.AzureAiKey);
}
});


app.get('/api/cdbkey', function routeHandler(req: any, res: any) {

console.log ('/api/cdbkey');
if (req.query.session == process.env.SessionKey) {
res.send(process.env.CosmosApiKey);
}
});

app.get('/api/login', async function routeHandler(req: any, res: any) {

console.log ('/api/login');
Expand Down
2 changes: 1 addition & 1 deletion public/assets/js/aibot.min.js

Large diffs are not rendered by default.

0 comments on commit f24feb1

Please sign in to comment.