Browse Source

Ordnerstruktur in /src/handlers nachgebessert

Christian Kahlau 3 years ago
parent
commit
b4e0599a9c

+ 2 - 2
src/handlers/auth-handler.class.ts

@@ -1,5 +1,5 @@
-import { HandlerBase } from './handler-base.class';
-import { SessionHandler } from './helpers/session-handler.class';
+import { HandlerBase } from './lib/handler-base.class';
+import { SessionHandler } from './lib/session-handler.class';
 
 export class AuthHandler extends HandlerBase {
   constructor(sessionHandler: SessionHandler) {

+ 1 - 1
src/handlers/echo-handler.class.ts

@@ -1,4 +1,4 @@
-import { HandlerBase } from './handler-base.class';
+import { HandlerBase } from './lib/handler-base.class';
 
 export class EchoHandler extends HandlerBase {
   constructor() {

+ 2 - 2
src/handlers/handler-base.class.ts → src/handlers/lib/handler-base.class.ts

@@ -3,8 +3,8 @@ import { createHash } from 'crypto';
 import { NextFunction, Request, Response, Router, RouterOptions, json as jsonBodyParser } from 'express';
 import moment from 'moment';
 
-import { AuthenticationException } from '../model/err/authentication.exception';
-import { SessionHandler } from './helpers/session-handler.class';
+import { AuthenticationException } from '../../model/err/authentication.exception';
+import { SessionHandler } from './session-handler.class';
 
 const STATIC_USERS = {
   testuser: 'bc2d5cc456b81caa403661411cc72a309c39677d035b74b713a5ba02412d9eff' // pass1234

+ 0 - 0
src/handlers/helpers/session-handler.class.ts → src/handlers/lib/session-handler.class.ts


+ 2 - 2
src/handlers/private-handler.class.ts

@@ -1,8 +1,8 @@
 import path from 'path';
 import express from 'express';
 
-import { HandlerBase } from './handler-base.class';
-import { SessionHandler } from './helpers/session-handler.class';
+import { HandlerBase } from './lib/handler-base.class';
+import { SessionHandler } from './lib/session-handler.class';
 
 const PRIVATE_DIR = path.resolve(process.cwd(), 'private');
 

+ 1 - 1
src/handlers/public-handler.class.ts

@@ -1,7 +1,7 @@
 import path from 'path';
 import express from 'express';
 
-import { HandlerBase } from './handler-base.class';
+import { HandlerBase } from './lib/handler-base.class';
 
 const PUBLIC_DIR = path.resolve(process.cwd(), 'public');
 

+ 1 - 1
src/webserver.class.ts

@@ -3,7 +3,7 @@ import multiparty from 'multiparty-express';
 
 import { AuthHandler } from './handlers/auth-handler.class';
 import { EchoHandler } from './handlers/echo-handler.class';
-import { SessionHandler } from './handlers/helpers/session-handler.class';
+import { SessionHandler } from './handlers/lib/session-handler.class';
 import { PrivateHandler } from './handlers/private-handler.class';
 import { PublicHandler } from './handlers/public-handler.class';