File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ <?php declare (strict_types=1 );
2+ /**
3+ * This file is part of Swoft.
4+ *
5+ * @link https://swoft.org
6+ * @document https://swoft.org/docs
7+ * @contact group@swoft.org
8+ * @license https://github.com/swoft-cloud/swoft/blob/master/LICENSE
9+ */
10+
11+ namespace App \Http \Controller ;
12+
13+ use Swoft \Http \Server \Annotation \Mapping \Controller ;
14+ use Swoft \Http \Server \Annotation \Mapping \RequestMapping ;
15+ use Swoft \Http \Server \Annotation \Mapping \RequestMethod ;
16+
17+ /**
18+ * Class DfdfController
19+ * @Controller(prefix="string")
20+ * @package App\Http\Controller
21+ */
22+ class DfdfController{
23+ /**
24+ * this is a example action. access uri path: string
25+ * @RequestMapping(route="string", method=RequestMethod::GET)
26+ * @return array
27+ */
28+ public function index (): array
29+ {
30+ return ['item0 ' , 'item1 ' ];
31+ }
32+ }
You can’t perform that action at this time.
0 commit comments