Add subscriptions endpoints to REST API
This commit is contained in:
parent
4bda2e47bb
commit
06a05d5f47
36 changed files with 1039 additions and 94 deletions
|
@ -29,7 +29,6 @@ import { usersAskResetPasswordValidator, usersBlockingValidator, usersResetPassw
|
|||
import { UserModel } from '../../../models/account/user'
|
||||
import { OAuthTokenModel } from '../../../models/oauth/oauth-token'
|
||||
import { auditLoggerFactory, UserAuditView } from '../../../helpers/audit-logger'
|
||||
import { videosRouter } from '../videos'
|
||||
import { meRouter } from './me'
|
||||
|
||||
const auditLogger = auditLoggerFactory('users')
|
||||
|
@ -41,7 +40,7 @@ const loginRateLimiter = new RateLimit({
|
|||
})
|
||||
|
||||
const usersRouter = express.Router()
|
||||
videosRouter.use('/', meRouter)
|
||||
usersRouter.use('/', meRouter)
|
||||
|
||||
usersRouter.get('/',
|
||||
authenticate,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue