From c917fd739a6aa87afdce0aeee8c37c281b69b60a Mon Sep 17 00:00:00 2001 From: rosa Date: Wed, 28 Jan 2026 02:02:26 +0100 Subject: [PATCH] docs: update README with /wake/:name request example --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ad33dcc..fecea10 100644 --- a/README.md +++ b/README.md @@ -6,8 +6,11 @@ Wake-on-LAN API in Node.js 1. `npm install` 2. `npm run start` -## Usage +## Custom targets +1. Copy `targets.example.json` to `targets.json` +2. Edit the file and add your targets +## Usage ### POST to `/wake` ```bash curl -X POST -H "Content-Type: application/json" -d '{ @@ -18,4 +21,9 @@ curl -X POST -H "Content-Type: application/json" -d '{ ### GET to `/wake` ```bash curl http://localhost:9999/wake?mac=00:AA:BB:CC:DD:EE +``` + +### GET to `/wake/:name` +```bash +curl http://localhost:9999/wake/ ``` \ No newline at end of file