feat: Implement get templates API router
This commit is contained in:
18
packages/backend/src/routes/api/v1/templates.ee.js
Normal file
18
packages/backend/src/routes/api/v1/templates.ee.js
Normal 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;
|
||||
Reference in New Issue
Block a user