From a36c36d86af9e48a7ee7ea78d4670ea94873bc43 Mon Sep 17 00:00:00 2001 From: Philip Molares Date: Sun, 12 Apr 2020 21:07:26 +0200 Subject: [PATCH] removed AuthProvider Signed-off-by: Philip Molares Signed-off-by: David Mehren --- lib/app.ts | 4 ++-- lib/web/index.ts | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/app.ts b/lib/app.ts index 2714f3ec0..694552e5f 100644 --- a/lib/app.ts +++ b/lib/app.ts @@ -20,7 +20,7 @@ import { config } from './config' import { logger } from './logger' import { errors } from './errors' import { addNonceToLocals, computeDirectives } from './csp' -import { AuthRouter, BaseRouter, HistoryRouter, ImageRouter, NoteRouter, StatusRouter } from './web/' +import { BaseRouter, HistoryRouter, ImageRouter, NoteRouter, StatusRouter } from './web/' // others import { realtime } from './realtime' @@ -206,7 +206,7 @@ app.locals.enableGitlabSnippets = config.isGitlabSnippetsEnable app.use(BaseRouter) app.use(StatusRouter) -app.use(AuthRouter) +app.use(require('./web/auth')) app.use(HistoryRouter) app.use(require('./web/userRouter')) app.use(ImageRouter) diff --git a/lib/web/index.ts b/lib/web/index.ts index 82e8e5724..87977e3cf 100644 --- a/lib/web/index.ts +++ b/lib/web/index.ts @@ -1,8 +1,7 @@ -import { AuthRouter } from './auth' import { BaseRouter } from './baseRouter' import { HistoryRouter } from './historyRouter' import { ImageRouter } from './imageRouter' import { NoteRouter } from './note/router' import { StatusRouter } from './statusRouter' -export { AuthRouter, BaseRouter, HistoryRouter, ImageRouter, NoteRouter, StatusRouter } +export { BaseRouter, HistoryRouter, ImageRouter, NoteRouter, StatusRouter }