update
This commit is contained in:
@@ -9,6 +9,13 @@ use support\Request;
|
|||||||
|
|
||||||
class Index
|
class Index
|
||||||
{
|
{
|
||||||
|
|
||||||
|
public function test()
|
||||||
|
{
|
||||||
|
echo 'test';
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public function index(Request $request, $checkIp = null)
|
public function index(Request $request, $checkIp = null)
|
||||||
{
|
{
|
||||||
$ip = $request->getRealIp();
|
$ip = $request->getRealIp();
|
||||||
|
|||||||
@@ -15,6 +15,7 @@
|
|||||||
use Webman\Route;
|
use Webman\Route;
|
||||||
|
|
||||||
Route::any('/', [\app\controller\Index::class, 'index']);
|
Route::any('/', [\app\controller\Index::class, 'index']);
|
||||||
|
Route::any('/test', [\app\controller\Index::class, 'test']);
|
||||||
|
|
||||||
|
|
||||||
Route::any('/check[/{ip}]', [\app\controller\Index::class, 'index']);
|
Route::any('/check[/{ip}]', [\app\controller\Index::class, 'index']);
|
||||||
|
|||||||
Reference in New Issue
Block a user