diff --git a/routes/api.js b/routes/api.js index 03190fb..dcda5d5 100644 --- a/routes/api.js +++ b/routes/api.js @@ -27,4 +27,8 @@ let db = new sqlite3.Database('A:\\db.sqlite'); }); }); + router.post('/getUserData/', function (req,res,next) { + + }) + module.exports = router; \ No newline at end of file diff --git a/views/index.ejs b/views/index.ejs index 52e4714..957ac0b 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -49,6 +49,7 @@ // Save data to local storage localStorage.setItem('ext_id', data.data.ext_id); localStorage.setItem('luid', data.data.luid); + localStorage.setItem('aimeid', data.data.id); window.location = "/user"; }) .catch(error => console.error(error)); diff --git a/views/user.ejs b/views/user.ejs index 7fe1a55..264dd09 100644 --- a/views/user.ejs +++ b/views/user.ejs @@ -17,6 +17,7 @@ clearStorageBtn.addEventListener('click', () => { localStorage.removeItem('ext_id'); localStorage.removeItem('luid'); + localStorage.removeItem('aimeid'); console.log('Local storage cleared.'); window.location = "/"; });