feat : chef

This commit is contained in:
2025-03-24 17:52:08 +08:00
parent 86248751bd
commit 6d66843c38
2 changed files with 95 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
<?php
declare(strict_types=1);
namespace App\Controller\Api;
use App\Middleware\Api\JwtAuthMiddleware;
use App\Service\Api\Chef\IndexService;
use Hyperf\HttpServer\Annotation\Controller;
use Hyperf\HttpServer\Annotation\Middlewares;
use Hyperf\HttpServer\Annotation\RequestMapping;
use Hyperf\Validation\Annotation\Scene;
#[Controller(prefix: 'api/chef')]
#[Middlewares([
JwtAuthMiddleware::class,
])]
class ChefController
{
/**
* @return array
*/
#[RequestMapping(path: "index", methods: "GET")]
#[Scene(scene: "index")]
public function index(): array
{
return (new IndexService)->handle();
}
}