@@ -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,4 +1,4 @@
export class EchoHandler extends HandlerBase {
constructor() {
@@ -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 { AuthenticationException } from '../../model/err/authentication.exception';
+import { SessionHandler } from './session-handler.class';
const STATIC_USERS = {
testuser: 'bc2d5cc456b81caa403661411cc72a309c39677d035b74b713a5ba02412d9eff' // pass1234
@@ -1,8 +1,8 @@
import path from 'path';
import express from 'express';
const PRIVATE_DIR = path.resolve(process.cwd(), 'private');
@@ -1,7 +1,7 @@
const PUBLIC_DIR = path.resolve(process.cwd(), 'public');
@@ -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';