home/autoph/public_html/projects/api/app/Controllers/ApiController.php 0000644 00000003172 15025036427 0022263 0 ustar 00 json([
'authenticated' => request()->authenticated
]);
}
/**
* @return string|null
*/
public function index(): ?string
{
return response()->json([
'method' => 'index'
]);
}
/**
* @return string|null
*/
public function store(): ?string
{
return response()->json([
'method' => 'store'
]);
}
/**
* @return string|null
*/
public function create(): ?string
{
return response()->json([
'method' => 'create'
]);
}
/**
* View
* @param mixed $id
* @return string|null
*/
public function edit($id): ?string
{
return response()->json([
'method' => sprintf('edit: %s', $id),
]);
}
/**
* @param mixed $id
* @return string|null
*/
public function update($id): ?string
{
return response()->json([
'method' => sprintf('update: %s', $id),
]);
}
/**
* @param mixed $id
* @return string|null
*/
public function destroy($id): ?string
{
return response()->json([
'method' => sprintf('destroy: %s', $id),
]);
}
}