upd: config.modules (added GET dev/session_destroy) | add: api.module.dev (added session_destroy() to clean the variable)

This commit is contained in:
xdrm-brackets 2017-12-06 17:41:25 +01:00
parent 27bb422aca
commit 5d9e6ef83f
2 changed files with 40 additions and 0 deletions

28
build/api/module/dev.php Normal file
View File

@ -0,0 +1,28 @@
<?php
namespace api\module;
use \error\core\Error;
use \error\core\Err;
use \database\core\Repo;
use \api\core\AuthSystemDefault;
class dev{
public function __construct(){}
public function __destruct(){}
public function GET_session_destroy($argv){
extract($argv);
$_SESSION = [];
return ['notice' => 'reload the website NOW !!'];
}
}

View File

@ -83,6 +83,18 @@
},
"dev": {
"GET session_destroy": {
"description": "Destroy current session",
"permissions": [],
"parameters": {},
"output": {}
}
},
"RESTexample": {
"POST article": {