shopping-list/php/api.php
2018-11-20 09:59:59 +01:00

20 lines
389 B
PHP

<?php
session_start();
switch($_GET["call"]) {
case 'list':
include $_SESSION["docroot"].'/php/edit-list.php';
break;
case 'recipes':
include $_SESSION["docroot"].'/php/edit-recipes.php';
break;
case 'user':
include $_SESSION["docroot"].'/php/edit-user.php';
break;
default:
echo "API call not defined";
break;
}
?>