添加后台代理代码
This commit is contained in:
5
codes/agent/game/api/source/public/.htaccess
Normal file
5
codes/agent/game/api/source/public/.htaccess
Normal file
@@ -0,0 +1,5 @@
|
||||
RewriteEngine on
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteCond $1 !^(index\.php)
|
||||
RewriteRule ^(.*)$ index.php/$1 [L]
|
||||
27
codes/agent/game/api/source/public/index.php
Normal file
27
codes/agent/game/api/source/public/index.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
use phprs\Bootstrap;
|
||||
use phprs\util\Logger;
|
||||
|
||||
require '../../framework/bootstrap.inc.php';
|
||||
|
||||
//ini_set('display_errors', 0);
|
||||
// ** if using composer, disable the following line **
|
||||
require_once __DIR__.'/../../lib/phprs/AutoLoad.php';
|
||||
|
||||
|
||||
// ** if using composer, enable the following line **
|
||||
//require_once __DIR__."/../vendor/autoload.php";
|
||||
|
||||
//set log flag
|
||||
//Logger::$flags = Logger::WARNING|Logger::DEBUG|Logger::ERROR|Logger::INFO;
|
||||
|
||||
//set log output
|
||||
//Logger::$writer = Logger::$to_echo;
|
||||
|
||||
//simulate request in CLI
|
||||
//$_SERVER['REQUEST_URI'] = '/api/apis';
|
||||
//$_SERVER['REQUEST_METHOD'] = 'GET';
|
||||
|
||||
Bootstrap::run(__DIR__.'/../conf.php');
|
||||
|
||||
$_W = array();
|
||||
Reference in New Issue
Block a user