diff options
Diffstat (limited to 'server/controllers/api/jobs.ts')
-rw-r--r-- | server/controllers/api/jobs.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/server/controllers/api/jobs.ts b/server/controllers/api/jobs.ts index d7cee1605..9e333322b 100644 --- a/server/controllers/api/jobs.ts +++ b/server/controllers/api/jobs.ts | |||
@@ -9,6 +9,7 @@ import { | |||
9 | authenticate, | 9 | authenticate, |
10 | ensureUserHasRight, | 10 | ensureUserHasRight, |
11 | jobsSortValidator, | 11 | jobsSortValidator, |
12 | openapiOperationDoc, | ||
12 | paginationValidatorBuilder, | 13 | paginationValidatorBuilder, |
13 | setDefaultPagination, | 14 | setDefaultPagination, |
14 | setDefaultSort | 15 | setDefaultSort |
@@ -18,6 +19,7 @@ import { listJobsValidator } from '../../middlewares/validators/jobs' | |||
18 | const jobsRouter = express.Router() | 19 | const jobsRouter = express.Router() |
19 | 20 | ||
20 | jobsRouter.get('/:state?', | 21 | jobsRouter.get('/:state?', |
22 | openapiOperationDoc({ operationId: 'getJobs' }), | ||
21 | authenticate, | 23 | authenticate, |
22 | ensureUserHasRight(UserRight.MANAGE_JOBS), | 24 | ensureUserHasRight(UserRight.MANAGE_JOBS), |
23 | paginationValidatorBuilder([ 'jobs' ]), | 25 | paginationValidatorBuilder([ 'jobs' ]), |