feat(api): add get template endpoint

This commit is contained in:
Ali BARIN
2025-04-25 09:58:15 +00:00
parent f1fa0d4b2a
commit aae4511013
5 changed files with 66 additions and 2 deletions

View File

@@ -1,8 +1,10 @@
import { Router } from 'express';
import getTemplateAction from '../../../controllers/api/v1/templates/get-template.ee.js';
import getTemplatesAction from '../../../controllers/api/v1/templates/get-templates.ee.js';
const router = Router();
router.get('/', getTemplatesAction);
router.get('/:templateId', getTemplateAction);
export default router;