1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-20 11:03:01 +08:00
2020-04-09 18:44:46 +08:00

24 lines
381 B
PHP

<?php
namespace App\Http\Api\Controllers;
use App\Traits\Response as ResponseTrait;
/**
* @RoutePrefix("/api")
*/
class PublicController extends \Phalcon\Mvc\Controller
{
use ResponseTrait;
/**
* @Get("/throttle", name="api.throttle")
*/
public function throttleAction()
{
return $this->jsonError(['msg' => '请求过于频繁']);
}
}