Browse Source

Test API

master
Kalyax 2 years ago
parent
commit
1aa19893f9
  1. 5
      api/light.php
  2. 4
      api/temp.php
  3. 1
      scripts/temp.sh

5
api/light.php

@ -0,0 +1,5 @@
<?php
$light_id = $_GET["d"]
$output = shell_exec('bash ../scripts/temp.sh '+$light_id);
echo $output
?>

4
api/temp.php

@ -0,0 +1,4 @@
<?php
$output = shell_exec('bash ../scripts/temp.sh');
echo $output
?>

1
scripts/temp.sh

@ -0,0 +1 @@
echo "test"
Loading…
Cancel
Save