更新
This commit is contained in:
parent
8c2cb05cff
commit
80b5e1724d
@ -15,9 +15,17 @@ use app\api\BaseController;
|
||||
use think\facade\Db;
|
||||
use app\project\validate\TaskCheck;
|
||||
use think\exception\ValidateException;
|
||||
use app\api\middleware\Auth;
|
||||
|
||||
class Index extends BaseController
|
||||
{
|
||||
/**
|
||||
* 控制器中间件 [登录、注册 不需要鉴权]
|
||||
* @var array
|
||||
*/
|
||||
protected $middleware = [
|
||||
Auth::class => ['except' => ['task_add'] ]
|
||||
];
|
||||
//上传文件
|
||||
public function upload()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user