shopping-list/php/api.php

21 lines
389 B
PHP
Raw Permalink Normal View History

2018-11-20 09:59:59 +01:00
<?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;
}
?>