后台基本功能完成,待完善:普通用户前端页面
This commit is contained in:
@@ -4,7 +4,7 @@ import { QuestionCategoryModel } from '../models/questionCategory';
|
||||
export class QuestionCategoryController {
|
||||
static async getCategories(req: Request, res: Response) {
|
||||
try {
|
||||
const categories = await QuestionCategoryModel.findAll();
|
||||
const categories = await QuestionCategoryModel.findAllWithQuestionCounts();
|
||||
res.json({
|
||||
success: true,
|
||||
data: categories
|
||||
|
||||
Reference in New Issue
Block a user