mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-30 10:49:55 -05:00
used the new named UserRouter 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
ef6632cac9
commit
3b7bab47be
2 changed files with 4 additions and 3 deletions
|
@ -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 } from './web/'
|
||||
import { BaseRouter, HistoryRouter, ImageRouter, NoteRouter, StatusRouter, UserRouter } from './web/'
|
||||
|
||||
// others
|
||||
import { realtime } from './realtime'
|
||||
|
@ -208,7 +208,7 @@ app.use(BaseRouter)
|
|||
app.use(StatusRouter)
|
||||
app.use(require('./web/auth'))
|
||||
app.use(HistoryRouter)
|
||||
app.use(require('./web/userRouter'))
|
||||
app.use(UserRouter)
|
||||
app.use(ImageRouter)
|
||||
app.use(NoteRouter)
|
||||
|
||||
|
|
|
@ -3,5 +3,6 @@ import { HistoryRouter } from './historyRouter'
|
|||
import { ImageRouter } from './imageRouter'
|
||||
import { NoteRouter } from './note/router'
|
||||
import { StatusRouter } from './statusRouter'
|
||||
import { UserRouter } from './userRouter'
|
||||
|
||||
export { BaseRouter, HistoryRouter, ImageRouter, NoteRouter, StatusRouter }
|
||||
export { BaseRouter, HistoryRouter, ImageRouter, NoteRouter, StatusRouter, UserRouter }
|
||||
|
|
Loading…
Reference in a new issue