mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-23 18:26:32 -05:00
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:
parent
5c49f42067
commit
395d9c671b
2 changed files with 4 additions and 3 deletions
|
@ -20,7 +20,7 @@ import { config } from './config'
|
||||||
import { logger } from './logger'
|
import { logger } from './logger'
|
||||||
import { errors } from './errors'
|
import { errors } from './errors'
|
||||||
import { addNonceToLocals, computeDirectives } from './csp'
|
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
|
// others
|
||||||
import { realtime } from './realtime'
|
import { realtime } from './realtime'
|
||||||
|
@ -206,7 +206,7 @@ app.locals.enableGitlabSnippets = config.isGitlabSnippetsEnable
|
||||||
|
|
||||||
app.use(BaseRouter)
|
app.use(BaseRouter)
|
||||||
app.use(StatusRouter)
|
app.use(StatusRouter)
|
||||||
app.use(require('./web/auth'))
|
app.use(AuthRouter)
|
||||||
app.use(HistoryRouter)
|
app.use(HistoryRouter)
|
||||||
app.use(UserRouter)
|
app.use(UserRouter)
|
||||||
app.use(ImageRouter)
|
app.use(ImageRouter)
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import { AuthRouter } from './auth'
|
||||||
import { BaseRouter } from './baseRouter'
|
import { BaseRouter } from './baseRouter'
|
||||||
import { HistoryRouter } from './historyRouter'
|
import { HistoryRouter } from './historyRouter'
|
||||||
import { ImageRouter } from './imageRouter'
|
import { ImageRouter } from './imageRouter'
|
||||||
|
@ -5,4 +6,4 @@ import { NoteRouter } from './note/router'
|
||||||
import { StatusRouter } from './statusRouter'
|
import { StatusRouter } from './statusRouter'
|
||||||
import { UserRouter } from './userRouter'
|
import { UserRouter } from './userRouter'
|
||||||
|
|
||||||
export { BaseRouter, HistoryRouter, ImageRouter, NoteRouter, StatusRouter, UserRouter }
|
export { AuthRouter, BaseRouter, HistoryRouter, ImageRouter, NoteRouter, StatusRouter, UserRouter }
|
||||||
|
|
Loading…
Reference in a new issue