const express = require('express');
const router = express.Router();

let items = [
  { id: 1, name: 'Apple' },
  { id: 2, name: 'Banana' },
];

// GET 전체 목록
router.get('/', (req, res) => {
  res.json(items);
});

module.exports = router;