Add /version endpoint returning {version, name} #9

Open
opened 2026-05-12 07:04:02 +00:00 by danny8632 · 1 comment
Owner

Goal

Add a GET /version endpoint to the Express server that returns JSON containing the package name and version from package.json. This tests the end-to-end webhook automation.

Done criteria

  • GET /version returns 200 with body { "name": "todo-app", "version": "0.1.0" } (values read from package.json, not hardcoded)
  • Existing routes (/healthz, /todos) are not broken
  • No new dependencies added

Hints

Base on the agent/issue-5 branch which already has POST/DELETE. Use require("./package.json") to read name and version. Keep it minimal.

Model

sonnet

## Goal Add a `GET /version` endpoint to the Express server that returns JSON containing the package name and version from package.json. This tests the end-to-end webhook automation. ## Done criteria - [ ] `GET /version` returns 200 with body `{ "name": "todo-app", "version": "0.1.0" }` (values read from package.json, not hardcoded) - [ ] Existing routes (/healthz, /todos) are not broken - [ ] No new dependencies added ## Hints Base on the agent/issue-5 branch which already has POST/DELETE. Use `require("./package.json")` to read name and version. Keep it minimal. ## Model sonnet
danny8632 added the agent:assign label 2026-05-12 07:04:02 +00:00
Author
Owner

agent dev-01: PR opened → #12

agent dev-01: PR opened → https://gitea.dannyhaslund.dk/danny8632/todo-app/pulls/12
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: danny8632/todo-app#9