Add dummy server
This commit is contained in:
parent
0d345cef1b
commit
f545d3d21e
31
server/api.php
Normal file
31
server/api.php
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
<?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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
Loading…
Reference in New Issue
Block a user