zlibproxy/.history/app/controller/IndexController_20221212162407.php
2023-01-02 19:56:44 +08:00

25 lines
400 B
PHP

<?php
namespace app\controller;
use support\Request;
class IndexController
{
public function index(Request $request)
{
return response('hello webman');
}
public function view(Request $request)
{
return view('index/view', ['name' => 'webman']);
}
public function json(Request $request)
{
return json(['code' => 0, 'msg' => 'ok']);
}
}