// GETTERS $router->post('/get', 'Get#dispatch'); // Getters Partenaire $router->get('/partner/familychildren/', "Partner#familychildren"); $router->get('/partner/familychildren/:idFamily', "Partner#familychildren")->with('idFamily', '[0-9]+'); $router->get('/partner/familychildren/:mailFamily', "Partner#familychildren"); //->with('mailFamily', '^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$'); $router->get('/partner/isabletoplay/:idChild', "Partner#isAbleToPlay")->with('idChild', '[0-9]+'); $router->get('/partner/gainxp/:idChild/:gain', "Partner#gainXp")->with('idChild', '[0-9]+')->with('gain', '[0-9]+'); // NOTIFICATION $router->post('/notification/checkmission', 'Notification#checkmission'); // envoie notif pour les mission du matin/midi/gouter/soir -recurrente- $router->post('/notification/checkpunctual', 'Notification#checkpunctual'); // envoie mission de la journée (date précise) -ponctuelle- $router->post('/notification/clear', 'Notification#clear'); // efface la bdd notif par famille. // Routing pour l'acces du cron. $router->get('/task/recurrent', 'Notification#recurrent'); $router->get('/task/tryme', 'Notification#tryme'); $router->get('/task/punctual', 'Notification#punctual'); // MAIL $router->post('/newpass', 'Family#askPass'); // on redirige vers la famille $router->get('/asknewpass/:mail', 'Mail#askNewPass'); $router->get('/report/:days', 'Report#report')->with('days', '[0-9]+'); // REPORT // $router->get('/dailyreport', 'Create#dailyReport'); $router->get('/dailyreport', 'Report#dailyReport'); // ************ $router->run();