From a2745e7323493abda84d6f00192c8fe0fc09e4af Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 20 Feb 2026 20:23:05 +0000 Subject: [PATCH 1/2] Initial plan From cffc23feb34523c488987c199670d34dfeb8346c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 20 Feb 2026 20:24:36 +0000 Subject: [PATCH 2/2] Add README.md documenting repository files including test.txt Co-authored-by: osortega <48293249+osortega@users.noreply.github.com> --- README.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..9423e9a --- /dev/null +++ b/README.md @@ -0,0 +1,35 @@ +# simple-server + +A simple Node.js/Express web server that demonstrates basic HTTP endpoints including GET and PATCH routes. + +## Installation + +```bash +npm install +``` + +## Usage + +Start the server: + +```bash +npm start +``` + +The server will run on port **7000** using `nodemon` for automatic restarts during development. + +## File Descriptions + +| File | Description | +|------|-------------| +| `index.js` | Main entry point. Sets up the Express application, defines the `GET /` route, and mounts the patch handler 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. It is used as a sample/test file to demonstrate file serving or testing scenarios. | +| `package.json` | Project metadata and npm scripts. | + +## Endpoints + +| Method | Path | Description | +|--------|------|-------------| +| `GET` | `/` | Returns `"Hello world!"` | +| `PATCH` | `/` | Patch endpoint handled by `patchHandler.js` |