From 60b58f8a2b2bc29ad2e2401023db9b22fa17e91c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 20 Feb 2026 22:00:01 +0000 Subject: [PATCH 1/2] Initial plan From 23b533f1887b47f0ed69a1a1a2f96f1848e75134 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 20 Feb 2026 22:01:19 +0000 Subject: [PATCH 2/2] Add README.md explaining the repository and its files Co-authored-by: osortega <48293249+osortega@users.noreply.github.com> --- README.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..dbac6b7 --- /dev/null +++ b/README.md @@ -0,0 +1,33 @@ +# simple-server + +A simple Express.js server for demonstrating basic HTTP endpoints. + +## Installation + +```bash +npm install +``` + +## Usage + +```bash +npm start +``` + +The server starts on port **7000**. + +## Files + +| File | Description | +|------|-------------| +| `index.js` | Main entry point. Sets up the Express app, defines the `GET /` route, and mounts the patch router. | +| `patchHandler.js` | Express router module that handles `PATCH /` requests. | +| `test.txt` | A plain-text file containing the numbers 1 through 20, one per line. Used as sample/test data. | +| `package.json` | Node.js project manifest with dependencies and scripts. | + +## API Endpoints + +| Method | Path | Description | +|--------|------|-------------| +| `GET` | `/` | Returns the string `"Hello world!"` | +| `PATCH`| `/` | Logs the request and handles patch operations. |