aboutsummaryrefslogtreecommitdiff
path: root/src/index.ts
diff options
context:
space:
mode:
authorTom Harley2018-04-20 15:15:46 +0100
committerTom Harley2018-04-20 15:16:25 +0100
commit8d0293af5592402448769451f85ce666ed407cb4 (patch)
tree95e19e5d09b46c5a509f2c5f58fc57f7956168be /src/index.ts
parentreduced # of failing tests (diff)
downloadmedicine-8d0293af5592402448769451f85ce666ed407cb4.tar.gz
medicine-8d0293af5592402448769451f85ce666ed407cb4.zip

Finalise CORS support with package corser

Diffstat (limited to 'src/index.ts')
-rw-r--r--src/index.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/index.ts b/src/index.ts
index 1ce284d..0074d7b 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -7,8 +7,8 @@ logger.info('Importing server logic');
import { default as app } from './app';
logger.info('Importing database ORM');
+import { createRootFolder, rootPathId } from './files';
import { default as seq } from './db/orm';
-import { View, files, views, rootPathId, createRootFolder } from './files';
import { default as File } from './db/model/File';
import { default as User } from './db/model/User';
@@ -63,7 +63,6 @@ async function reset(): Promise<void> {
await logging.save();
await admin.save();
-
logger.info('Adding admin user');
const root: User = new User({
username: 'hafeez',