Migrate project from typing_practiceweb

This commit is contained in:
2026-05-14 16:04:14 +08:00
parent dbc5425706
commit 0e87d5546d
225 changed files with 92811 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
import express from 'express';
import { PracticeType } from '../models/PracticeType';
const router = express.Router();
router.get('/', async (req, res) => {
try {
const practiceTypes = await PracticeType.find();
res.json(practiceTypes);
} catch (error) {
res.status(500).json({ message: 'Error fetching practice types' });
}
});
export default router;