2022-03-17 18:46:49 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
|
|
2022-03-18 15:44:04 +08:00
|
|
|
use App\Repositories\TrackerRepository;
|
2022-03-17 18:46:49 +08:00
|
|
|
use Illuminate\Http\Request;
|
|
|
|
|
|
|
|
|
|
class TrackerController extends Controller
|
|
|
|
|
{
|
2022-03-18 15:44:04 +08:00
|
|
|
private TrackerRepository $repository;
|
2022-03-17 18:46:49 +08:00
|
|
|
|
2022-03-18 15:44:04 +08:00
|
|
|
public function __construct(TrackerRepository $repository)
|
2022-03-17 18:46:49 +08:00
|
|
|
{
|
|
|
|
|
$this->repository = $repository;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2022-03-18 15:44:04 +08:00
|
|
|
* @param Request $request
|
2022-03-17 18:46:49 +08:00
|
|
|
* @return \Illuminate\Http\Response
|
|
|
|
|
*/
|
2022-03-18 15:44:04 +08:00
|
|
|
public function announce(Request $request): \Illuminate\Http\Response
|
2022-03-17 18:46:49 +08:00
|
|
|
{
|
2022-03-18 15:44:04 +08:00
|
|
|
return $this->repository->announce($request);
|
2022-03-17 18:46:49 +08:00
|
|
|
}
|
|
|
|
|
}
|