mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-21 03:49:21 -04:00
Throw exceptions as appropriate, but allow the Kohana exception
handling framework to handle the exception and delegate to our template, which will JSON encode the response.
This commit is contained in:
2
modules/rest/views/error_rest.php
Normal file
2
modules/rest/views/error_rest.php
Normal file
@@ -0,0 +1,2 @@
|
||||
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
||||
<?= json_encode($e->response) ?>
|
||||
Reference in New Issue
Block a user