used the new named AuthRouter in app.ts

Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: David Mehren <dmehren1@gmail.com>
This commit is contained in:
Philip Molares 2020-04-13 11:44:21 +02:00 committed by David Mehren
parent 5c49f42067
commit 395d9c671b
No known key found for this signature in database
GPG key ID: 6017AF117F9756CB
2 changed files with 4 additions and 3 deletions

View file

@ -20,7 +20,7 @@ import { config } from './config'
import { logger } from './logger'
import { errors } from './errors'
import { addNonceToLocals, computeDirectives } from './csp'
import { BaseRouter, HistoryRouter, ImageRouter, NoteRouter, StatusRouter, UserRouter } from './web/'
import { AuthRouter, BaseRouter, HistoryRouter, ImageRouter, NoteRouter, StatusRouter, UserRouter } from './web/'
// others
import { realtime } from './realtime'
@ -206,7 +206,7 @@ app.locals.enableGitlabSnippets = config.isGitlabSnippetsEnable
app.use(BaseRouter)
app.use(StatusRouter)
app.use(require('./web/auth'))
app.use(AuthRouter)
app.use(HistoryRouter)
app.use(UserRouter)
app.use(ImageRouter)

View file

@ -1,3 +1,4 @@
import { AuthRouter } from './auth'
import { BaseRouter } from './baseRouter'
import { HistoryRouter } from './historyRouter'
import { ImageRouter } from './imageRouter'
@ -5,4 +6,4 @@ import { NoteRouter } from './note/router'
import { StatusRouter } from './statusRouter'
import { UserRouter } from './userRouter'
export { BaseRouter, HistoryRouter, ImageRouter, NoteRouter, StatusRouter, UserRouter }
export { AuthRouter, BaseRouter, HistoryRouter, ImageRouter, NoteRouter, StatusRouter, UserRouter }