diff --git a/src/routes/customers.php b/src/routes/customers.php index 30a4aa0..d7e2738 100644 --- a/src/routes/customers.php +++ b/src/routes/customers.php @@ -31,7 +31,7 @@ $db = null; echo json_encode($customers); } catch(PDOException $e){ - echo '{"error": {"text": '.$e->getMessage().'}'; + echo '{"error": {"text": '.$e->getMessage().'} }'; } }); @@ -52,7 +52,7 @@ $db = null; echo json_encode($customer); } catch(PDOException $e){ - echo '{"error": {"text": '.$e->getMessage().'}'; + echo '{"error": {"text": '.$e->getMessage().'} }'; } }); @@ -87,10 +87,10 @@ $stmt->execute(); - echo '{"notice": {"text": "Customer Added"}'; + echo '{"notice": {"text": "Customer Added"} }'; } catch(PDOException $e){ - echo '{"error": {"text": '.$e->getMessage().'}'; + echo '{"error": {"text": '.$e->getMessage().'} }'; } }); @@ -133,10 +133,10 @@ $stmt->execute(); - echo '{"notice": {"text": "Customer Updated"}'; + echo '{"notice": {"text": "Customer Updated"} }'; } catch(PDOException $e){ - echo '{"error": {"text": '.$e->getMessage().'}'; + echo '{"error": {"text": '.$e->getMessage().'} }'; } }); @@ -155,8 +155,8 @@ $stmt = $db->prepare($sql); $stmt->execute(); $db = null; - echo '{"notice": {"text": "Customer Deleted"}'; + echo '{"notice": {"text": "Customer Deleted"} }'; } catch(PDOException $e){ - echo '{"error": {"text": '.$e->getMessage().'}'; + echo '{"error": {"text": '.$e->getMessage().'} }'; } -}); \ No newline at end of file +});