Example for API
This commit is contained in:
23
src/API/APIUser.php
Normal file
23
src/API/APIUser.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace WebProjectFitness\API;
|
||||
|
||||
class APIUser extends API {
|
||||
|
||||
private $declaredFunctions = [
|
||||
'insert' => [
|
||||
'method' => 'POST',
|
||||
'params' => [
|
||||
'name' => [
|
||||
'required' => true,
|
||||
'type' => 'string'
|
||||
]
|
||||
]
|
||||
],
|
||||
];
|
||||
|
||||
public function __construct() {
|
||||
parent::__construct( $this->declaredFunctions );
|
||||
}
|
||||
|
||||
}
|
@ -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;
|
||||
|
||||
|
@ -1,10 +1,10 @@
|
||||
<div class="row" style="margin-bottom: 0">
|
||||
<div class="col s2 green lighten-1 white-text" style="height: 750px;">
|
||||
<div class="col l3 m4 s6 green lighten-1 white-text" style="height: 750px;">
|
||||
<div class="row">
|
||||
<div class="col l3 m4 s6 center-align">
|
||||
<div class="col s12 center-align">
|
||||
<h5>Selected part of the body</h5>
|
||||
</div>
|
||||
<div class="col l9 m8 s6">
|
||||
<div class="col s12" id="point-container">
|
||||
<img src="/img/muscles.jpg" style="width: 100%;">
|
||||
</div>
|
||||
<div class="col s12" id="list-exercices-select-part">
|
||||
@ -15,13 +15,13 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col s10">
|
||||
<div class="col l9 m8 s6">
|
||||
<div class="container">
|
||||
<h2>Title</h2>
|
||||
<div class="center-align">
|
||||
<iframe width="560" height="315" src="https://www.youtube.com/embed/1gLmEOSwQMs" frameborder="0"
|
||||
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
|
||||
allowfullscreen></iframe>
|
||||
<!-- <iframe width="560" height="315" src="https://www.youtube.com/embed/1gLmEOSwQMs" frameborder="0"-->
|
||||
<!-- allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"-->
|
||||
<!-- allowfullscreen></iframe>-->
|
||||
<div class="exercise-info-container blue-grey lighten-4 left-align">
|
||||
Test
|
||||
</div>
|
||||
|
@ -10,7 +10,7 @@
|
||||
</footer>
|
||||
|
||||
<script src="/js/jquery-3.3.1.min.js"></script>
|
||||
<script async src="/js/materialize.min.js"></script>
|
||||
<script src="/js/materialize.min.js"></script>
|
||||
<script async src="/js/javascript.js?v=<?= WebProjectFitness\Config::SITE_JS_VERSION ?>"></script>
|
||||
|
||||
</body>
|
||||
|
Reference in New Issue
Block a user