Files
backend/app/Controller/admin/SpiderArticleController.php
2025-06-18 10:31:43 +08:00

24 lines
747 B
PHP
Executable File

<?php
namespace App\Controller\admin;
use App\Controller\AbstractController;
use Hyperf\HttpServer\Annotation\Controller;
use Hyperf\HttpServer\Annotation\RequestMapping;
use Hyperf\View\RenderInterface;
#[Controller(prefix: 'admin/spider-article')]
class SpiderArticleController extends AbstractController
{
#[RequestMapping(path: '', methods: 'get')]
public function index(RenderInterface $render): \Psr\Http\Message\ResponseInterface
{
return $render->render('spider-article/index');
}
#[RequestMapping(path: 'view', methods: 'get')]
public function view(RenderInterface $render): \Psr\Http\Message\ResponseInterface
{
return $render->render('spider-article/view');
}
}