import express from 'express';
import { wrapAsync } from '@/api/http/request';
import * as user_progress from '@/api/controllers/user_progress.controller';

const router = express.Router();

router.get('/', wrapAsync(user_progress.list));
router.post('/', wrapAsync(user_progress.upsert));
router.delete('/by-item', wrapAsync(user_progress.removeByItem));

export default router;
