21 lines
363 B
PHP
21 lines
363 B
PHP
|
<?php
|
||
|
|
||
|
namespace app\controller;
|
||
|
use support\Request;
|
||
|
use Webman\Captcha\CaptchaBuilder;
|
||
|
use support\View;
|
||
|
use Respect\Validation\Validator as v;
|
||
|
use support\Redis;
|
||
|
|
||
|
|
||
|
class api
|
||
|
{
|
||
|
public function search(Request $request)
|
||
|
{
|
||
|
$content=$request->post('content');
|
||
|
$contenttype=v::ip()->validate($content);
|
||
|
|
||
|
return view('login');
|
||
|
}
|
||
|
|
||
|
}
|