# wol-api Wake-on-LAN API in Node.js ## Running 1. `npm install` 2. `npm run start` ## Custom targets 1. Copy `targets.example.json` to `targets.json` 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 '{ "mac": "00:AA:BB:CC:DD:EE" }' http://localhost:9999/wake ``` ### GET to `/wake` ```bash 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/ ```