refactor: Use express-async-errors instead of express-async-handler
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
import { Router } from 'express';
|
||||
import asyncHandler from 'express-async-handler';
|
||||
import { checkIsEnterprise } from '../../../helpers/check-is-enterprise.js';
|
||||
import getSamlAuthProvidersAction from '../../../controllers/api/v1/saml-auth-providers/get-saml-auth-providers.ee.js';
|
||||
|
||||
const router = Router();
|
||||
|
||||
router.get('/', checkIsEnterprise, asyncHandler(getSamlAuthProvidersAction));
|
||||
router.get('/', checkIsEnterprise, getSamlAuthProvidersAction);
|
||||
|
||||
export default router;
|
||||
|
||||
Reference in New Issue
Block a user