mirror of https://github.com/hasinhayder/hydra
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
496 B
21 lines
496 B
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use Illuminate\Http\Request;
|
|
|
|
class HydraController extends Controller
|
|
{
|
|
public function hydra(){
|
|
return response([
|
|
"message"=>"Welcome to Hydra, the zero config API boilerplate with roles and abilities for Laravel Sanctum. Please visit https://hasinhayder.github.io/hydra to know more."
|
|
]);
|
|
}
|
|
|
|
public function version(){
|
|
return response([
|
|
"version"=> config('hydra.version')
|
|
]);
|
|
}
|
|
}
|