26 lines
418 B
PHP
26 lines
418 B
PHP
|
<?php
|
||
|
|
||
|
namespace app\controller;
|
||
|
use support\Request;
|
||
|
use support\Redis;
|
||
|
$redis = Redis::connection('default');
|
||
|
|
||
|
class IndexController
|
||
|
{
|
||
|
public function index(Request $request)
|
||
|
{
|
||
|
return view('index');
|
||
|
}
|
||
|
|
||
|
public function user(Request $request)
|
||
|
{
|
||
|
return view('user');
|
||
|
}
|
||
|
|
||
|
public function json(Request $request)
|
||
|
{
|
||
|
return json(['code' => 0, 'msg' => 'ok']);
|
||
|
}
|
||
|
|
||
|
}
|