20 lines
413 B
PHP
20 lines
413 B
PHP
<?php
|
|
|
|
namespace App\Controllers;
|
|
|
|
use App\Core\Response;
|
|
use App\Services\ScoreSheetService;
|
|
|
|
final class PublicController
|
|
{
|
|
public function standings(array $params): void
|
|
{
|
|
Response::json((new ScoreSheetService())->standings((int) $params['id']));
|
|
}
|
|
|
|
public function stats(array $params): void
|
|
{
|
|
Response::json((new ScoreSheetService())->stats((int) $params['id']));
|
|
}
|
|
}
|