This commit is contained in:
dzl
2025-09-24 15:45:49 +08:00
parent 658ff89c6a
commit 0388f3b0e7
4 changed files with 24 additions and 2 deletions

19
routes/shopbackend.js Normal file
View File

@@ -0,0 +1,19 @@
const express = require('express');
const router = express.Router();
const { auth } = require('../middleware/auth');
router.get('/', auth, async (req, res) => {
try {
res.json({
success: true,
data: {
text: '123'
}
});
console.log(req)
} catch (error) {
res.status(500).json({ error: 'Internal server error' });
}
});
module.exports = router;