This commit is contained in:
pucketm2016 committed 2026-06-25 12:05:53 -05:00
commit b58e50e423
141 files changed
+28190

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
import { getHelpArticle, listHelp } from '../models/helpModel.js';
export function index(req, res) {
res.json(listHelp({
query: String(req.query.q || ''),
category: String(req.query.category || '')
}));
}
export function show(req, res) {
const article = getHelpArticle(req.params.id);
if (!article) return res.status(404).json({ error: 'Help article not found' });
res.json(article);
}