fix hot bugs.

This commit is contained in:
Ahmed Bouhuolia
2020-04-26 03:09:33 +02:00
parent d14ff872d4
commit e01ad95ac3
31 changed files with 251 additions and 350 deletions

View File

@@ -1,10 +1,12 @@
import express from 'express';
import { check, param, query, validationResult } from 'express-validator';
import {
param,
query,
validationResult,
} from 'express-validator';
import fs from 'fs';
import asyncMiddleware from '@/http/middleware/asyncMiddleware';
import TenancyMiddleware from '@/http/middleware/TenancyMiddleware';
import jwtAuth from '@/http/middleware/jwtAuth';
import Logger from '@/services/Logger';
const fsPromises = fs.promises;
@@ -16,9 +18,6 @@ export default {
router() {
const router = express.Router();
router.use(jwtAuth);
router.use(TenancyMiddleware);
router.post('/upload',
this.upload.validation,
asyncMiddleware(this.upload.handler));