yacos/server/api.php
2019-07-24 20:29:53 +02:00

32 lines
538 B
PHP

<?php
// This is just a dummy implementation during the development of the GTK+3 GUI
if (isset($_GET['meta'])) {
if ($_GET['id'] == "1") {
?>
{
"title" : "Cute Wifi Cat",
"description" : "802.11nya~",
"comment" : "It's mewine!"
}
<?php
} else if ($_GET['id'] == "2") {
?>
{
"title" : "Crazy Stuff",
"description" : "It blinks. Or explodes.",
"comment" : "Like the kittens."
}
<?php
} else {
?>
{
"title" : "INVALID",
"description" : "INVALID",
"comment" : "INVALID"
}
<?php
}
}
?>