diff options
Diffstat (limited to 'server/controllers/api/users.ts')
-rw-r--r-- | server/controllers/api/users.ts | 24 |
1 files changed, 6 insertions, 18 deletions
diff --git a/server/controllers/api/users.ts b/server/controllers/api/users.ts index 3106df9b9..75393ad17 100644 --- a/server/controllers/api/users.ts +++ b/server/controllers/api/users.ts | |||
@@ -1,26 +1,14 @@ | |||
1 | import * as express from 'express' | 1 | import * as express from 'express' |
2 | import { UserCreate, UserRight, UserRole, UserUpdate, UserUpdateMe, UserVideoRate as FormattedUserVideoRate } from '../../../shared' | 2 | import { UserCreate, UserRight, UserRole, UserUpdate, UserUpdateMe, UserVideoRate as FormattedUserVideoRate } from '../../../shared' |
3 | import { getFormattedObjects, logger, retryTransactionWrapper } from '../../helpers' | 3 | import { retryTransactionWrapper } from '../../helpers/database-utils' |
4 | import { logger } from '../../helpers/logger' | ||
5 | import { getFormattedObjects } from '../../helpers/utils' | ||
4 | import { CONFIG } from '../../initializers' | 6 | import { CONFIG } from '../../initializers' |
5 | import { createUserAccountAndChannel } from '../../lib/user' | 7 | import { createUserAccountAndChannel } from '../../lib/user' |
6 | import { | 8 | import { |
7 | asyncMiddleware, | 9 | asyncMiddleware, authenticate, ensureUserHasRight, ensureUserRegistrationAllowed, paginationValidator, setPagination, setUsersSort, |
8 | authenticate, | 10 | setVideosSort, token, usersAddValidator, usersGetValidator, usersRegisterValidator, usersRemoveValidator, usersSortValidator, |
9 | ensureUserHasRight, | 11 | usersUpdateMeValidator, usersUpdateValidator, usersVideoRatingValidator |
10 | ensureUserRegistrationAllowed, | ||
11 | paginationValidator, | ||
12 | setPagination, | ||
13 | setUsersSort, | ||
14 | setVideosSort, | ||
15 | token, | ||
16 | usersAddValidator, | ||
17 | usersGetValidator, | ||
18 | usersRegisterValidator, | ||
19 | usersRemoveValidator, | ||
20 | usersSortValidator, | ||
21 | usersUpdateMeValidator, | ||
22 | usersUpdateValidator, | ||
23 | usersVideoRatingValidator | ||
24 | } from '../../middlewares' | 12 | } from '../../middlewares' |
25 | import { videosSortValidator } from '../../middlewares/validators' | 13 | import { videosSortValidator } from '../../middlewares/validators' |
26 | import { AccountVideoRateModel } from '../../models/account/account-video-rate' | 14 | import { AccountVideoRateModel } from '../../models/account/account-video-rate' |