update sentences API
All checks were successful
Deploy to Production / deploy (push) Successful in 22s

This commit is contained in:
silverpro89
2026-02-24 14:29:23 +07:00
parent cfc83c983c
commit d3da098f6f
10 changed files with 1447 additions and 19 deletions

View File

@@ -32,6 +32,10 @@ router.post('/:id/add-images', contextController.addImages);
// Status 4 -> 5: Approve
router.post('/:id/approve', contextController.approveContext);
// Search contexts: partial match on title/context + filter by type_image, status, etc.
// Body: { search, title, context_text, type_image, type, status, grade, page, limit }
router.post('/search', contextController.searchContexts);
// Get all contexts (with optional filters)
router.get('/', contextController.getAllContexts);