}); Flight::route('POST /startup/favorite', function () { // Récupération de la liste des favoris de l’utilisateur en cours (Les “Startups” notées positivement) Controller::startup_favorite(); }); Flight::route('POST /user/statistics', function () { // Récupération des statistiques calculées sur le serveur (Like, Vues, etc…) Controller::user_statistics(); }); Flight::route('POST /user/statistics/edit', function () { // Modification des statistiques individuellement ou par paquet (Demande d’informations ou partage de l’application) Controller::user_statistics_edit(); }); Flight::route('POST /startup/like', function () { // Enregistrement du choix de l’utilisateur sur une “startup” (Like ou Dislike) Controller::startup_like(); }); /* Flight::route('POST /user/create/email', function(){//User creation by mail and password $user_name = Controller::get_post_value('user_name', true); $user_email = Controller::get_post_value('user_email', true); $user_password = Controller::get_post_value('user_password', true); $device_token = Controller::get_post_value('device_token', true); $device_type = Controller::get_post_value('device_type', true); Controller::user_create_email($user_name, $user_email, $user_password, $device_token, $device_type); }); Flight::route('POST /user/connect/email', function(){//User connection by mail and password $user_email = Controller::get_post_value('user_email', true); $user_password = Controller::get_post_value('user_password', true);
$data = Controller::collect_post_value('viadeo_link', false, $data); $data = Controller::collect_post_value('corporate_name', false, $data); $data = Controller::collect_post_value('investment_capacity', false, $data, 'int'); $data = Controller::collect_post_value('activity', false, $data); $data = Controller::collect_post_value('sector_activity', false, $data); Controller::user_edit($data); }); Flight::route('POST /user/resetpw', function () { $data = Controller::collect_post_value('email', true); Controller::user_resetpw($data); }); Flight::route('POST /startup/like', function () { $data = Controller::collect_post_value('startup_token', true); $data = Controller::collect_post_value('liker_token', true, $data); $data = Controller::collect_post_value('like', true, $data, 'int'); Controller::startup_like($data); }); Flight::route('POST /startup/unrated', function () { $data = Controller::collect_post_value('token', true); Controller::startup_unrated($data); }); Flight::route('POST /startup/favorite', function () { $data = Controller::collect_post_value('token', true); Controller::startup_favorite($data); }); Flight::route('POST /startup/likes_statistics', function () { $data = Controller::collect_post_value('token', true); Controller::startup_likes_statistics($data); }); Flight::route('POST /startup/statistics', function () { $data = Controller::collect_post_value('token', true);