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