Add tags field to todos and ?tag= filter on GET /todos
All checks were successful
Auditor / audit (pull_request) Successful in 51s

- Add tags:[] to all seed todo objects
- POST /todos accepts optional tags array (defaults to [])
- GET /todos?tag=<value> filters to todos whose tags include that value (case-sensitive)

Closes #14
This commit is contained in:
agent dev-01
2026-05-12 07:26:04 +00:00
parent cee0601b83
commit e50dc2447e
3 changed files with 823 additions and 0 deletions

12
package.json Normal file
View File

@@ -0,0 +1,12 @@
{
"name": "todo-app",
"version": "0.1.0",
"description": "Minimal Express TODO API",
"main": "index.js",
"scripts": {
"start": "node index.js"
},
"dependencies": {
"express": "^4.18.2"
}
}