diff options
Diffstat (limited to 'server/controllers/api')
-rw-r--r-- | server/controllers/api/accounts.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/server/controllers/api/accounts.ts b/server/controllers/api/accounts.ts index aa01ea1eb..8d4db1e75 100644 --- a/server/controllers/api/accounts.ts +++ b/server/controllers/api/accounts.ts | |||
@@ -1,22 +1,22 @@ | |||
1 | import * as express from 'express' | 1 | import * as express from 'express' |
2 | import { getFormattedObjects, getServerActor } from '../../helpers/utils' | 2 | import { getFormattedObjects, getServerActor } from '../../helpers/utils' |
3 | import { | 3 | import { |
4 | authenticate, | ||
5 | asyncMiddleware, | 4 | asyncMiddleware, |
5 | authenticate, | ||
6 | commonVideosFiltersValidator, | 6 | commonVideosFiltersValidator, |
7 | videoRatingValidator, | ||
8 | optionalAuthenticate, | 7 | optionalAuthenticate, |
9 | paginationValidator, | 8 | paginationValidator, |
10 | setDefaultPagination, | 9 | setDefaultPagination, |
11 | setDefaultSort, | 10 | setDefaultSort, |
12 | videoPlaylistsSortValidator, | 11 | videoPlaylistsSortValidator, |
13 | videoRatesSortValidator | 12 | videoRatesSortValidator, |
13 | videoRatingValidator | ||
14 | } from '../../middlewares' | 14 | } from '../../middlewares' |
15 | import { | 15 | import { |
16 | accountNameWithHostGetValidator, | 16 | accountNameWithHostGetValidator, |
17 | accountsSortValidator, | 17 | accountsSortValidator, |
18 | videosSortValidator, | 18 | ensureAuthUserOwnsAccountValidator, |
19 | ensureAuthUserOwnsAccountValidator | 19 | videosSortValidator |
20 | } from '../../middlewares/validators' | 20 | } from '../../middlewares/validators' |
21 | import { AccountModel } from '../../models/account/account' | 21 | import { AccountModel } from '../../models/account/account' |
22 | import { AccountVideoRateModel } from '../../models/account/account-video-rate' | 22 | import { AccountVideoRateModel } from '../../models/account/account-video-rate' |