Files
sena_db_api_layer/routes/chapterLessonRoutes.js
silverpro89 53d97ba5db update
2026-01-20 20:29:07 +07:00

37 lines
883 B
JavaScript

const express = require('express');
const router = express.Router();
const lessonController = require('../controllers/lessonController');
/**
* @swagger
* tags:
* name: Chapter Lessons
* description: Quản lý bài học theo chương
*/
/**
* @swagger
* /api/chapters/{chapter_id}/lessons:
* get:
* tags: [Chapter Lessons]
* summary: Lấy danh sách bài học của chương
* parameters:
* - in: path
* name: chapter_id
* required: true
* schema:
* type: string
* format: uuid
* - in: query
* name: include_unpublished
* schema:
* type: boolean
* default: false
* responses:
* 200:
* description: Danh sách bài học
*/
router.get('/:chapter_id/lessons', lessonController.getLessonsByChapter);
module.exports = router;