diff --git a/src/API/APIUser.php b/src/API/APIUser.php new file mode 100644 index 0000000..84ff4c6 --- /dev/null +++ b/src/API/APIUser.php @@ -0,0 +1,23 @@ + [ + 'method' => 'POST', + 'params' => [ + 'name' => [ + 'required' => true, + 'type' => 'string' + ] + ] + ], + ]; + + public function __construct() { + parent::__construct( $this->declaredFunctions ); + } + +} \ No newline at end of file diff --git a/src/Model/BDD.php b/src/Model/BDD.php index 7a8d013..b2ef0e0 100644 --- a/src/Model/BDD.php +++ b/src/Model/BDD.php @@ -6,15 +6,15 @@ use Exception; use PDO; class BDD { - const SQL_SERVER = 'web3.pulseheberg.net'; // BDD Server - const SQL_LOGIN = 'why7n0_fitness'; // BDD Login - const SQL_PASSWORD = 'KpB728zu'; // BDD Password - const SQL_DB = 'why7n0_fitness'; // BDD Name +// const SQL_SERVER = 'web3.pulseheberg.net'; // BDD Server +// const SQL_LOGIN = 'why7n0_fitness'; // BDD Login +// const SQL_PASSWORD = 'KpB728zu'; // BDD Password +// const SQL_DB = 'why7n0_fitness'; // BDD Name -// const SQL_SERVER = 'localhost'; // BDD Server -// const SQL_LOGIN = 'root'; // BDD Login -// const SQL_PASSWORD = ''; // BDD Password -// const SQL_DB = 'fitness'; // BDD Name + const SQL_SERVER = 'localhost'; // BDD Server + const SQL_LOGIN = 'root'; // BDD Login + const SQL_PASSWORD = ''; // BDD Password + const SQL_DB = 'fitness'; // BDD Name private static $bdd; diff --git a/src/View/Site/Index.php b/src/View/Site/Index.php index 2ec57a3..c3a2d5b 100644 --- a/src/View/Site/Index.php +++ b/src/View/Site/Index.php @@ -1,10 +1,10 @@