add shields tunes endpoint
This commit is contained in:
parent
7985cf3c5d
commit
3299636a46
18
api/shields-tunes.php
Normal file
18
api/shields-tunes.php
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
<?php
|
||||||
|
header('Content-Type: application/json');
|
||||||
|
require "../templates/config.php";
|
||||||
|
?>
|
||||||
|
{
|
||||||
|
"schemaVersion": 1,
|
||||||
|
"label": "current tunes",
|
||||||
|
"color": "lightgrey",
|
||||||
|
<?php
|
||||||
|
require "../creds.php";
|
||||||
|
|
||||||
|
$result = mysqli_query($mysqli, "SELECT Song FROM articles ORDER BY ID DESC LIMIT 1");
|
||||||
|
|
||||||
|
while($res = mysqli_fetch_array($result)) {
|
||||||
|
echo ' "message": "'.$res['Song'].'"',"\n";
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user