logout functionality

This commit is contained in:
Jan Prochazka
2022-03-21 20:54:40 +01:00
parent 26881a3e39
commit 77612cc6fb
3 changed files with 20 additions and 0 deletions

View File

@@ -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;