Browse Source

mark

hyperf
chenlong 1 year ago
parent
commit
de3fe75b92
  1. 2
      Controller/DemoController.php

2
Controller/DemoController.php

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

Loading…
Cancel
Save