mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 19:36:00 +00:00
logout functionality
This commit is contained in:
@@ -38,10 +38,19 @@ module.exports = {
|
||||
allowShellConnection: platformInfo.allowShellConnection,
|
||||
allowShellScripting: platformInfo.allowShellConnection,
|
||||
permissions,
|
||||
login,
|
||||
...currentVersion,
|
||||
};
|
||||
},
|
||||
|
||||
logout_meta: {
|
||||
method: 'get',
|
||||
raw: true,
|
||||
},
|
||||
logout(req, res) {
|
||||
res.status(401).send('Logged out<br><a href="../..">Back to DbGate</a>');
|
||||
},
|
||||
|
||||
platformInfo_meta: true,
|
||||
async platformInfo() {
|
||||
return platformInfo;
|
||||
|
||||
Reference in New Issue
Block a user