|
|
|
@ -3,6 +3,7 @@
|
|
|
|
|
namespace Plugins\ApiDoc\Controller; |
|
|
|
|
|
|
|
|
|
use App\Middleware\Api\ApiAuthenticateMiddleware; |
|
|
|
|
use App\Middleware\Api\ApiTokenSetMiddleware; |
|
|
|
|
use App\Util\Response; |
|
|
|
|
use Hyperf\HttpServer\Annotation\Controller; |
|
|
|
|
use Hyperf\HttpServer\Annotation\GetMapping; |
|
|
|
@ -25,6 +26,7 @@ use Sc\Util\Tool;
|
|
|
|
|
*/ |
|
|
|
|
#[Api] |
|
|
|
|
#[Controller('api/plugins/demo')] |
|
|
|
|
#[Middlewares([ApiTokenSetMiddleware::class])] |
|
|
|
|
class DemoController |
|
|
|
|
{ |
|
|
|
|
/** |
|
|
|
|