From 2071d8b43a286ec98c65347ac14d4bb79841f86a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 20 Feb 2026 23:17:16 +0000 Subject: [PATCH 1/2] Initial plan From ccffae5c0caf7b19535913f51c91fdc76145a1af Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 20 Feb 2026 23:18:23 +0000 Subject: [PATCH 2/2] Add README.md documenting the simple-server repository 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..4bc83b8 --- /dev/null +++ b/README.md @@ -0,0 +1,35 @@ +# simple-server + +A simple Express.js web server example. + +## Installation + +```bash +npm install +``` + +## Usage + +Start the server: + +```bash +npm start +``` + +The server listens on port **7000**. + +## Files + +| File | Description | +|------|-------------| +| `index.js` | Main entry point. Sets up the Express app, defines a GET `/` route, and mounts the patch router. | +| `patchHandler.js` | Express router module that handles PATCH requests to `/`. | +| `test.txt` | A sample text file containing the numbers 1–20, one per line. | +| `package.json` | Project metadata and npm scripts. | + +## API Endpoints + +| Method | Path | Description | +|--------|------|-------------| +| GET | `/` | Returns `"Hello world!"` | +| PATCH | `/` | Handles PATCH requests (logs the request). |