feat: Implement admin create template API endpoint

This commit is contained in:
Faruk AYDIN
2025-02-21 17:49:15 +01:00
parent c573205a56
commit 72436f7d3b
5 changed files with 102 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
import { Router } from 'express';
import { authenticateUser } from '../../../../helpers/authentication.js';
import { authorizeAdmin } from '../../../../helpers/authorization.js';
import createTemplateAction from '../../../../controllers/api/v1/admin/templates/create-template.ee.js';
const router = Router();
router.post('/', authenticateUser, authorizeAdmin, createTemplateAction);
export default router;