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:
Philip Molares 2020-04-13 11:36:23 +02:00 committed by David Mehren
parent ef6632cac9
commit 3b7bab47be
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 } 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)

View file

@ -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 }