aboutsummaryrefslogtreecommitdiff
path: root/src/server/index.ts
diff options
context:
space:
mode:
authorMohammad Amoush <muhammedamoush@gmail.com>2019-11-12 17:26:58 -0500
committerMohammad Amoush <muhammedamoush@gmail.com>2019-11-12 17:26:58 -0500
commit06a9b3477dfef93af3c2715f5512d0d883191b58 (patch)
tree786201607b2ababf15ba2c5592728de4db3b7043 /src/server/index.ts
parent2ea0efa91072c98c185f957d8040edde2cdb4e5e (diff)
fixed everything except for async
Diffstat (limited to 'src/server/index.ts')
-rw-r--r--src/server/index.ts9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/server/index.ts b/src/server/index.ts
index 59752d6de..773b84403 100644
--- a/src/server/index.ts
+++ b/src/server/index.ts
@@ -4,10 +4,7 @@ import * as mobileDetect from 'mobile-detect';
import * as path from 'path';
import { Database } from './database';
const serverPort = 4321;
-import { GooglePhotosUploadUtils } from './apis/google/GooglePhotosUploadUtils';
-import { Opt } from '../new_fields/Doc';
import { DashUploadUtils } from './DashUploadUtils';
-import { BatchedArray, TimeUnit } from 'array-batcher';
import RouteSubscriber from './RouteSubscriber';
import initializeServer from './Initialization';
import RouteManager, { Method, _success, _permission_denied, _error, _invalid, OnUnauthenticated } from './RouteManager';
@@ -21,6 +18,8 @@ import { GoogleCredentialsLoader } from './credentials/CredentialsLoader';
import DeleteManager from "./ApiManagers/DeleteManager";
import PDFManager from "./ApiManagers/PDFManager";
import UploadManager from "./ApiManagers/UploadManager";
+import GeneralGoogleManager from "./ApiManagers/GeneralGoogleManager";
+import GooglePhotosManager from "./ApiManagers/GooglePhotosManager";
export const publicDirectory = __dirname + "/public";
export const filesDirectory = publicDirectory + "/files/";
@@ -64,7 +63,9 @@ function routeSetter(router: RouteManager) {
new SearchManager(),
new PDFManager(),
new DeleteManager(),
- new UtilManager()
+ new UtilManager(),
+ new GeneralGoogleManager(),
+ new GooglePhotosManager(),
].forEach(manager => manager.register(router));
// initialize the web socket (bidirectional communication: if a user changes