fuc-new/src/Controllers/DocController.php
hellcat 1fe8673f62 1
2025-10-01 13:34:29 +08:00

57 lines
1.4 KiB
PHP
Executable File

<?php
declare(strict_types=1);
namespace App\Controllers;
use App\Services\Auth;
use Psr\Http\Message\ResponseInterface;
use Slim\Http\Response;
use Slim\Http\ServerRequest;
use Smarty\Exception as SmartyException;
use App\Services\Auth as AuthService;
final class DocController extends BaseController
{
public function index(ServerRequest $request, Response $response, array $args): ResponseInterface
{
return $response->write(
$this->view()
->fetch('doc/index.tpl')
);
}
public function windows(ServerRequest $request, Response $response, array $args): ResponseInterface
{
return $response->write(
$this->view()
->fetch('doc/windows.tpl')
);
}
public function mac(ServerRequest $request, Response $response, array $args): ResponseInterface
{
return $response->write(
$this->view()
->fetch('doc/mac.tpl')
);
}
public function android(ServerRequest $request, Response $response, array $args): ResponseInterface
{
return $response->write(
$this->view()
->fetch('doc/android.tpl')
);
}
public function ios(ServerRequest $request, Response $response, array $args): ResponseInterface
{
return $response->write(
$this->view()
->fetch('doc/ios.tpl')
);
}
}