Browse Source

repl: Handle refill case

master
Elis Hirwing 3 years ago
parent
commit
5c4fbbd498
Signed by: etu GPG Key ID: D57EFA625C9A925F
  1. 5
      repl.php

5
repl.php

@ -61,6 +61,11 @@ while (true) {
break;
case 'r':
// Refill case
$response = $httpClient->put('/inventory/'.$item.'/'.$amount);
$result = json_decode($response->getBody());
echo $result->status.PHP_EOL;
break;
}
}

Loading…
Cancel
Save