thinkphp8注解路由解决方案,官方文档有误
<?php
namespace app\controller;
use think\annotation\route\Route;
// use think\annotation\Route;
class Address
{
#[Route("GET","ds/:id",["ext"=>"html","https"=>"1"])]
public function details($id)
{
return 'hi,'.$id;
}
}