ajustes da api para o container
This commit is contained in:
@@ -20,7 +20,6 @@
|
|||||||
define('STR_BD_IRACEMAPOLIS','firebird:dbname='.SERVIDOR_HOMO.'/'.PORTA_HOMO.':'.BANCO_IRACEMAPOLIS.';charset=UTF-8');
|
define('STR_BD_IRACEMAPOLIS','firebird:dbname='.SERVIDOR_HOMO.'/'.PORTA_HOMO.':'.BANCO_IRACEMAPOLIS.';charset=UTF-8');
|
||||||
|
|
||||||
//mariaDB
|
//mariaDB
|
||||||
define('DB_CONTROLE',"mysql:dbname=controledb;host=localhost;charset=utf8");
|
define('DB_CONTROLE',"mysql:dbname=controledb;host=192.168.176.2/3312;charset=utf8");
|
||||||
define('USER','root');
|
define('USER','root');
|
||||||
define('PASS','');
|
define('PASS','las1594@@');
|
||||||
//será mudada depois o banco para a cidade desejada dinâmicamente
|
|
||||||
@@ -3,7 +3,6 @@
|
|||||||
function load(string $controller, string $action){
|
function load(string $controller, string $action){
|
||||||
|
|
||||||
try{
|
try{
|
||||||
|
|
||||||
$controllerNameSpace = "app\\controllers\\{$controller}";
|
$controllerNameSpace = "app\\controllers\\{$controller}";
|
||||||
if(!class_exists($controllerNameSpace)){
|
if(!class_exists($controllerNameSpace)){
|
||||||
throw new Exception("Controller {$controller} não existe");
|
throw new Exception("Controller {$controller} não existe");
|
||||||
@@ -48,8 +47,7 @@ $router= [
|
|||||||
];
|
];
|
||||||
|
|
||||||
//rodar local host
|
//rodar local host
|
||||||
//php -S localhost:8000
|
|
||||||
//php -S 192.168.18.2:8000
|
//php -S 192.168.18.2:8000
|
||||||
|
|
||||||
//depois chamar localhost:8000
|
//depois chamar localhost:8000
|
||||||
//http://192.168.18.2:8000/login?NO_USERNAME=AMENEZES
|
//http://192.168.18.2:8000/logincontrole?NO_USERNAME=AMENEZES&CIDADE=IRACEMAPOLIS
|
||||||
|
|||||||
Reference in New Issue
Block a user