Initial commit

This commit is contained in:
Zhongwei Li
2025-11-29 17:51:59 +08:00
commit 38e80921c8
89 changed files with 20480 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
/**
* ${RESOURCE_NAME} Routes
*
* @route ${HTTP_METHOD} ${ROUTE_PATH}
*/
import { Router, Request, Response, NextFunction } from 'express';
const router = Router();
/**
* ${HTTP_METHOD} ${ROUTE_PATH}
* @description ${HTTP_METHOD} ${RESOURCE_NAME_LOWER}
*/
router.${HTTP_METHOD_LOWER}(
'${ROUTE_PATH}',
${MIDDLEWARE_CHAIN ? MIDDLEWARE_CHAIN + ',' : ''}
async (req: Request, res: Response, next: NextFunction) => {
try {
// TODO: Implement ${RESOURCE_NAME_LOWER} ${HTTP_METHOD_LOWER} logic
res.status(200).json({
success: true,
data: {}, // Replace with actual data
});
} catch (error) {
next(error);
}
}
);
export default router;