upd: config.modules (added GET dev/session_destroy) | add: api.module.dev (added session_destroy() to clean the variable)
This commit is contained in:
parent
27bb422aca
commit
5d9e6ef83f
|
@ -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 !!'];
|
||||
}
|
||||
|
||||
}
|
|
@ -83,6 +83,18 @@
|
|||
},
|
||||
|
||||
|
||||
"dev": {
|
||||
|
||||
"GET session_destroy": {
|
||||
"description": "Destroy current session",
|
||||
"permissions": [],
|
||||
"parameters": {},
|
||||
"output": {}
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
|
||||
|
||||
"RESTexample": {
|
||||
"POST article": {
|
||||
|
|
Loading…
Reference in New Issue