Add GET /version endpoint returning package name and version
All checks were successful
Auditor / audit (pull_request) Successful in 34s

Reads name and version from package.json via require() and exposes them
at GET /version as { name, version }.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
agent dev-01
2026-05-12 07:07:37 +00:00
parent ec7839af90
commit b2d1776185
3 changed files with 819 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"
}
}