Added a version endpoint

This commit is contained in:
James Brooks
2016-02-29 21:31:25 +00:00
parent 24a29f2251
commit be78216ff3
2 changed files with 11 additions and 0 deletions

View File

@@ -22,4 +22,14 @@ class GeneralController extends AbstractApiController
{
return $this->item('Pong!');
}
/**
* Endpoint to show the Cachet version.
*
* @return \Illuminate\Http\JsonResponse
*/
public function version()
{
return $this->item(CACHET_VERSION);
}
}