123456789101112131415161718192021222324 |
- <?php
- include_once('config.php');
- include_once('autoloader.php');
- try{
- $fp = fopen('php://input', 'r');
- $input = json_decode(stream_get_contents($fp), true);
- if(isset($input['shop_domain']))
- {
- $db = new Database();
- $result = $db->delete($input['shop_domain']);
- echo $result;
- }
- else
- {
- echo 'Error deleting shop: No shop domain found in input';
- }
- }
- catch(\Exception $e) {
- echo $e->getMessage();
- }
|