feat : Composite file
This commit is contained in:
24
app/Controller/Test/CompositeController.php
Normal file
24
app/Controller/Test/CompositeController.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Controller\Test;
|
||||
|
||||
use App\Service\Test\Composite\FileService;
|
||||
use Hyperf\HttpServer\Annotation\Controller;
|
||||
use Hyperf\HttpServer\Annotation\RequestMapping;
|
||||
use Hyperf\HttpServer\Contract\RequestInterface;
|
||||
use Hyperf\HttpServer\Contract\ResponseInterface;
|
||||
|
||||
#[Controller(prefix: 'composite/test')]
|
||||
class CompositeController
|
||||
{
|
||||
/**
|
||||
* @return array|null
|
||||
*/
|
||||
#[RequestMapping(path: 'file', methods: 'GET')]
|
||||
public function file()
|
||||
{
|
||||
return (new FileService)->handle();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user