@ -22,4 +22,12 @@ api_lemon_pleiade.lemon_session_query:
_title: 'LemonLDAP API Session Query'
_format: json
requirements:
_access: 'TRUE'
api_lemon_pleiade.my_history:
path: '/history'
defaults:
_controller: '\Drupal\api_lemon_pleiade\Controller\PleiadeAjaxController::myHistory'
_title: 'Historique de connexion'
_permission: 'access content'
@ -35,5 +35,17 @@ class PleiadeAjaxController extends ControllerBase {
}
// TODO : TOTP query if possible
/**
* Returns our session history page.
*
* @return array
* A simple renderable array.
*/
public function myHistory() {
return [
'#markup' => '<div id="history>Historique à remplir via Ajax dans div#history</div>',
];