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