(no commit message) master
authorChristian Weiske <cweiske@cweiske.de>
Wed, 12 Dec 2018 12:46:26 +0000 (13:46 +0100)
committerwww-cweiske <www-cweiske@localhost.localdomain>
Wed, 12 Dec 2018 12:46:26 +0000 (13:46 +0100)
app/Exceptions/Handler.php [new file with mode: 0644]

diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php
new file mode 100644 (file)
index 0000000..9b948ef
--- /dev/null
@@ -0,0 +1,5 @@
+    public function render($request, Exception $exception)\r
+    {\r
+        $request->headers->set('Accept', 'application/json');\r
+        return parent::render($request, $exception);\r
+    }
\ No newline at end of file