diff options
| author | Bob Zeleznik <zzzman@gmail.com> | 2019-12-03 12:34:46 -0500 |
|---|---|---|
| committer | Bob Zeleznik <zzzman@gmail.com> | 2019-12-03 12:34:46 -0500 |
| commit | 0961e03a6ba250fa8aa813d763975c5d25082349 (patch) | |
| tree | b5632caebd85f32e44bdffa8fb072f9e5086437c /src/server/index.ts | |
| parent | 1722edb46a62ea8fadafc2b5aab7e89203252513 (diff) | |
| parent | 7866dd1700d6a3457e0f0255428ee42e5c7d8ff9 (diff) | |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web
Diffstat (limited to 'src/server/index.ts')
| -rw-r--r-- | src/server/index.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/server/index.ts b/src/server/index.ts index 0e0bd0bd6..2921ad2df 100644 --- a/src/server/index.ts +++ b/src/server/index.ts @@ -22,6 +22,7 @@ import { log_execution } from "./ActionUtilities"; import GeneralGoogleManager from "./ApiManagers/GeneralGoogleManager"; import GooglePhotosManager from "./ApiManagers/GooglePhotosManager"; import DiagnosticManager from "./ApiManagers/DiagnosticManager"; +import { yellow } from "colors"; export const publicDirectory = path.resolve(__dirname, "public"); export const filesDirectory = path.resolve(publicDirectory, "files"); @@ -51,7 +52,7 @@ async function preliminaryFunctions() { * that will manage the registration of new routes * with the server */ -function routeSetter({ isRelease, addSupervisedRoute, log }: RouteManager) { +function routeSetter({ isRelease, addSupervisedRoute, logRegistrationOutcome }: RouteManager) { const managers = [ new UserManager(), new UploadManager(), @@ -66,8 +67,9 @@ function routeSetter({ isRelease, addSupervisedRoute, log }: RouteManager) { ]; // initialize API Managers + console.log(yellow("\nregistering server routes...")); managers.forEach(manager => manager.register(addSupervisedRoute)); - log(); + logRegistrationOutcome(); // initialize the web socket (bidirectional communication: if a user changes // a field on one client, that change must be broadcast to all other clients) |
