refactor: Use internal namespace for the existing API
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
import { Router } from 'express';
|
||||
import { authenticateUser } from '../../../helpers/authentication.js';
|
||||
import { authorizeUser } from '../../../helpers/authorization.js';
|
||||
import { checkIsEnterprise } from '../../../helpers/check-is-enterprise.js';
|
||||
import { checkTemplatesEnabled } from '../../../helpers/check-templates-enabled.js';
|
||||
|
||||
import getTemplatesAction from '../../../controllers/api/v1/templates/get-templates.ee.js';
|
||||
|
||||
const router = Router();
|
||||
|
||||
router.get(
|
||||
'/',
|
||||
authenticateUser,
|
||||
authorizeUser,
|
||||
checkIsEnterprise,
|
||||
checkTemplatesEnabled,
|
||||
getTemplatesAction
|
||||
);
|
||||
|
||||
export default router;
|
||||
Reference in New Issue
Block a user