Moved the authchecker to the middleware folder (b/c it pretty much is a glolified middleware)

ref #56
This commit is contained in:
2020-12-30 14:01:37 +01:00
parent 6e121a3ce2
commit b5f9cf201d
3 changed files with 6 additions and 6 deletions

View File

@@ -1,9 +1,9 @@
import consola from "consola";
import "reflect-metadata";
import { createExpressServer } from "routing-controllers";
import authchecker from "./authchecker";
import { config, e as errors } from './config';
import loaders from "./loaders/index";
import authchecker from "./middlewares/authchecker";
import { ErrorHandler } from './middlewares/ErrorHandler';
const CONTROLLERS_FILE_EXTENSION = process.env.NODE_ENV === 'production' ? 'js' : 'ts';