feat: Implement get templates API router

This commit is contained in:
Faruk AYDIN
2025-03-06 15:17:13 +01:00
parent 820e4cb2c2
commit 8ba72db463
3 changed files with 24 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
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 getTemplatesAction from '../../../controllers/api/v1/templates/get-templates.ee.js';
const router = Router();
router.get(
'/',
authenticateUser,
authorizeUser,
checkIsEnterprise,
getTemplatesAction
);
export default router;