From 0d27f4d5ca4b692af11ac64d6d0ecdbcc18bf768 Mon Sep 17 00:00:00 2001 From: BenoitRanque Date: Fri, 22 Mar 2019 04:35:32 -0400 Subject: [PATCH] renamed support.file to support.attachement. got auth working for attachement --- business-logic/src/{upload/index.js => attachement.js} | 2 +- business-logic/src/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename business-logic/src/{upload/index.js => attachement.js} (98%) diff --git a/business-logic/src/upload/index.js b/business-logic/src/attachement.js similarity index 98% rename from business-logic/src/upload/index.js rename to business-logic/src/attachement.js index d621bae..17a0195 100644 --- a/business-logic/src/upload/index.js +++ b/business-logic/src/attachement.js @@ -5,7 +5,7 @@ const fs = require('fs') const corser = require('corser') const uuid = require('uuid/v4') const throttle = require('express-throttle-bandwidth') -const { requireSessionMiddleware, requireRoleMiddleware, getAccountId, getRoles} = require('../utils/session') +const { requireSessionMiddleware, requireRoleMiddleware, getAccountId, getRoles} = require('./utils/session') const app = express() diff --git a/business-logic/src/index.js b/business-logic/src/index.js index 96909f5..bd0c8b1 100644 --- a/business-logic/src/index.js +++ b/business-logic/src/index.js @@ -9,7 +9,7 @@ const port = 3000 app.use(sessionMiddleware) app.use('/graphql', require('./graphql')) -app.use('/upload', require('./upload')) +app.use('/attachement', require('./attachement')) app.listen({ port }, () => { console.log(`Listening on port ${port}`);