diff options
author | Joanne <zehan_ding@brown.edu> | 2025-06-17 13:02:50 -0400 |
---|---|---|
committer | Joanne <zehan_ding@brown.edu> | 2025-06-17 13:02:50 -0400 |
commit | 2aa2c26b95a539d220e46b20cdfbef6ae39d6c43 (patch) | |
tree | 344a6f798f692fdd4921ab5a6762e907f5ad7b06 /src/server/server_Initialization.ts | |
parent | 430db63077868fa54829721d6530a810aa4d4588 (diff) | |
parent | ccfdf905400cd4b81d8cde0f16bb0e15cd65621b (diff) |
Merge branch 'agent-paper-main' of https://github.com/brown-dash/Dash-Web into joanne-tutorialagent
Diffstat (limited to 'src/server/server_Initialization.ts')
-rw-r--r-- | src/server/server_Initialization.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/server/server_Initialization.ts b/src/server/server_Initialization.ts index 514e2ce1e..80cf977ee 100644 --- a/src/server/server_Initialization.ts +++ b/src/server/server_Initialization.ts @@ -21,6 +21,7 @@ import { Database } from './database'; import { WebSocket } from './websocket'; import axios from 'axios'; import { JSDOM } from 'jsdom'; +import { setupDynamicToolsAPI } from './api/dynamicTools'; /* RouteSetter is a wrapper around the server that prevents the server from being exposed. */ @@ -210,6 +211,10 @@ export default async function InitializeServer(routeSetter: RouteSetter) { // app.use(cors({ origin: (_origin: any, callback: any) => callback(null, true) })); registerAuthenticationRoutes(app); // this adds routes to authenticate a user (login, etc) registerCorsProxy(app); // this adds a /corsproxy/ route to allow clients to get to urls that would otherwise be blocked by cors policies + + // Set up the dynamic tools API + setupDynamicToolsAPI(app); + isRelease && !SSL.Loaded && SSL.exit(); routeSetter(new RouteManager(app, isRelease)); // this sets up all the regular supervised routes (things like /home, download/upload api's, pdf, search, session, etc) isRelease && process.env.serverPort && (resolvedPorts.server = Number(process.env.serverPort)); |