Added API /ping endpoint. Closes #687
This commit is contained in:
20
app/Http/Controllers/Api/GeneralController.php
Normal file
20
app/Http/Controllers/Api/GeneralController.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Cachet.
|
||||
*
|
||||
* (c) Cachet HQ <support@cachethq.io>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace CachetHQ\Cachet\Http\Controllers\Api;
|
||||
|
||||
class GeneralController extends AbstractApiController
|
||||
{
|
||||
public function ping()
|
||||
{
|
||||
return $this->item('Pong!');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user