18e6796726
* REST API routes are handle by Slim. * Every API controller go through ApiMiddleware which handles security. * First service implemented `/info`, for tests purpose.
19 lines
310 B
PHP
19 lines
310 B
PHP
<?php
|
|
|
|
namespace Shaarli\Api\Exceptions;
|
|
|
|
/**
|
|
* Class ApiInternalException
|
|
*
|
|
* Generic exception, return a 500 HTTP code.
|
|
*/
|
|
class ApiInternalException extends ApiException
|
|
{
|
|
/**
|
|
* @inheritdoc
|
|
*/
|
|
public function getApiResponse()
|
|
{
|
|
return $this->buildApiResponse(500);
|
|
}
|
|
}
|