yacos/server/api.php

32 lines
548 B
PHP
Raw Normal View History

2019-07-24 20:29:53 +02:00
<?php
// This is just a dummy implementation during the development of the GTK+3 GUI
if (isset($_GET['meta'])) {
2019-07-24 21:19:45 +02:00
if ($_GET['id'] == "BF09CE") {
2019-07-24 20:29:53 +02:00
?>
{
"title" : "Cute Wifi Cat",
"description" : "802.11nya~",
"comment" : "It's mewine!"
}
<?php
2019-07-24 21:19:45 +02:00
} else if ($_GET['id'] == "BE6200") {
2019-07-24 20:29:53 +02:00
?>
{
"title" : "Crazy Stuff",
"description" : "It blinks. Or explodes.",
"comment" : "Like the kittens."
}
<?php
} else {
?>
{
"title" : "INVALID",
"description" : "INVALID",
"comment" : "INVALID"
}
<?php
}
}
?>