diff options
author | Chocobozzz <me@florianbigard.com> | 2018-08-16 15:25:20 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-08-27 09:41:54 +0200 |
commit | 06a05d5f4784a7cbb27aa1188385b5679845dad8 (patch) | |
tree | ac197f3ed0768529456225ad76c912f22bc55e29 /server/controllers/api/users/index.ts | |
parent | 4bda2e47bbc937c401ddcf14c1be53c70481a294 (diff) | |
download | PeerTube-06a05d5f4784a7cbb27aa1188385b5679845dad8.tar.gz PeerTube-06a05d5f4784a7cbb27aa1188385b5679845dad8.tar.zst PeerTube-06a05d5f4784a7cbb27aa1188385b5679845dad8.zip |
Add subscriptions endpoints to REST API
Diffstat (limited to 'server/controllers/api/users/index.ts')
-rw-r--r-- | server/controllers/api/users/index.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/server/controllers/api/users/index.ts b/server/controllers/api/users/index.ts index 105244ddd..608d439ac 100644 --- a/server/controllers/api/users/index.ts +++ b/server/controllers/api/users/index.ts | |||
@@ -29,7 +29,6 @@ import { usersAskResetPasswordValidator, usersBlockingValidator, usersResetPassw | |||
29 | import { UserModel } from '../../../models/account/user' | 29 | import { UserModel } from '../../../models/account/user' |
30 | import { OAuthTokenModel } from '../../../models/oauth/oauth-token' | 30 | import { OAuthTokenModel } from '../../../models/oauth/oauth-token' |
31 | import { auditLoggerFactory, UserAuditView } from '../../../helpers/audit-logger' | 31 | import { auditLoggerFactory, UserAuditView } from '../../../helpers/audit-logger' |
32 | import { videosRouter } from '../videos' | ||
33 | import { meRouter } from './me' | 32 | import { meRouter } from './me' |
34 | 33 | ||
35 | const auditLogger = auditLoggerFactory('users') | 34 | const auditLogger = auditLoggerFactory('users') |
@@ -41,7 +40,7 @@ const loginRateLimiter = new RateLimit({ | |||
41 | }) | 40 | }) |
42 | 41 | ||
43 | const usersRouter = express.Router() | 42 | const usersRouter = express.Router() |
44 | videosRouter.use('/', meRouter) | 43 | usersRouter.use('/', meRouter) |
45 | 44 | ||
46 | usersRouter.get('/', | 45 | usersRouter.get('/', |
47 | authenticate, | 46 | authenticate, |