From 67daf00f04fd692042a4b9715f192a618c8ce581 Mon Sep 17 00:00:00 2001 From: rosa Date: Wed, 28 Jan 2026 03:01:04 +0100 Subject: [PATCH] docs(README): add example usage of main web page and /targets endpoint --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index fecea10..18f12d0 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,10 @@ Wake-on-LAN API in Node.js 2. Edit the file and add your targets ## Usage +Navigate to `http://localhost:9999` and just click the target you want to wake up. + +Or: + ### POST to `/wake` ```bash curl -X POST -H "Content-Type: application/json" -d '{ @@ -23,6 +27,11 @@ curl -X POST -H "Content-Type: application/json" -d '{ curl http://localhost:9999/wake?mac=00:AA:BB:CC:DD:EE ``` +### GET to `/targets` +```bash +curl http://localhost:9999/targets +``` + ### GET to `/wake/:name` ```bash curl http://localhost:9999/wake/