From 72730a0abe9a2510252b767b66fabbb4620fdfb9 Mon Sep 17 00:00:00 2001 From: gparant Date: Sun, 5 Apr 2020 14:31:49 +0200 Subject: [PATCH] Refactor & Typo --- back/src/App.ts | 4 ++-- back/src/Controller/AuthenticateController.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/back/src/App.ts b/back/src/App.ts index e46f4cb3..3b4c049a 100644 --- a/back/src/App.ts +++ b/back/src/App.ts @@ -1,6 +1,6 @@ // lib/app.ts -import {IoSocketController} from "./Controller/IoSocketController"; //TODO fix impot by "_Controller/..." -import {AuthenticateController} from "./Controller/AuthenticateController"; //TODO fix impot by "_Controller/..." +import {IoSocketController} from "./Controller/IoSocketController"; //TODO fix import by "_Controller/..." +import {AuthenticateController} from "./Controller/AuthenticateController"; //TODO fix import by "_Controller/..." import express from "express"; import {Application} from 'express'; import bodyParser = require('body-parser'); diff --git a/back/src/Controller/AuthenticateController.ts b/back/src/Controller/AuthenticateController.ts index c810ea8a..08a96fed 100644 --- a/back/src/Controller/AuthenticateController.ts +++ b/back/src/Controller/AuthenticateController.ts @@ -1,7 +1,7 @@ import {Application, Request, Response} from "express"; -import Jwt, {JsonWebTokenError} from "jsonwebtoken"; +import Jwt from "jsonwebtoken"; import {BAD_REQUEST, OK} from "http-status-codes"; -import {SECRET_KEY, ROOM} from "../Enum/EnvironmentVariable"; +import {SECRET_KEY, ROOM} from "../Enum/EnvironmentVariable"; //TODO fix import by "_Enum/..." export class AuthenticateController{ App : Application;