aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/jobs.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/controllers/api/jobs.ts')
-rw-r--r--server/controllers/api/jobs.ts7
1 files changed, 5 insertions, 2 deletions
diff --git a/server/controllers/api/jobs.ts b/server/controllers/api/jobs.ts
index 180a3fca6..de37dea39 100644
--- a/server/controllers/api/jobs.ts
+++ b/server/controllers/api/jobs.ts
@@ -1,7 +1,10 @@
1import * as express from 'express' 1import * as express from 'express'
2import { UserRight } from '../../../shared/models/users' 2import { UserRight } from '../../../shared/models/users'
3import { getFormattedObjects } from '../../helpers/utils' 3import { getFormattedObjects } from '../../helpers/utils'
4import { asyncMiddleware, authenticate, ensureUserHasRight, jobsSortValidator, setDefaultSort, setPagination } from '../../middlewares' 4import {
5 asyncMiddleware, authenticate, ensureUserHasRight, jobsSortValidator, setDefaultPagination,
6 setDefaultSort
7} from '../../middlewares'
5import { paginationValidator } from '../../middlewares/validators' 8import { paginationValidator } from '../../middlewares/validators'
6import { JobModel } from '../../models/job/job' 9import { JobModel } from '../../models/job/job'
7 10
@@ -13,7 +16,7 @@ jobsRouter.get('/',
13 paginationValidator, 16 paginationValidator,
14 jobsSortValidator, 17 jobsSortValidator,
15 setDefaultSort, 18 setDefaultSort,
16 setPagination, 19 setDefaultPagination,
17 asyncMiddleware(listJobs) 20 asyncMiddleware(listJobs)
18) 21)
19 22