mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-02-24 03:34:12 +01:00
36 lines
728 B
PHP
36 lines
728 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of Cachet.
|
|
*
|
|
* (c) Alt Three Services Limited
|
|
*
|
|
* 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
|
|
{
|
|
/**
|
|
* Ping endpoint allows API consumers to check the version.
|
|
*
|
|
* @return \Illuminate\Http\JsonResponse
|
|
*/
|
|
public function ping()
|
|
{
|
|
return $this->item('Pong!');
|
|
}
|
|
|
|
/**
|
|
* Endpoint to show the Cachet version.
|
|
*
|
|
* @return \Illuminate\Http\JsonResponse
|
|
*/
|
|
public function version()
|
|
{
|
|
return $this->item(CACHET_VERSION);
|
|
}
|
|
}
|