From 3b39d702dd965b53c1b13283739661aaf5b67c5d Mon Sep 17 00:00:00 2001 From: Bumblebee <85351846+Bumblebee-3@users.noreply.github.com> Date: Sun, 23 Jul 2023 19:08:49 +0530 Subject: [PATCH] Update panel.md --- docs/panel.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/panel.md b/docs/panel.md index d38e72e..7cd973b 100644 --- a/docs/panel.md +++ b/docs/panel.md @@ -53,3 +53,12 @@ app.get("/somePathWhichDoesNotExist",(req,res)=>{ res.send("Aoi.panel is sooo cool"); }) ``` +### Checking if user is logged in: +```js +const app = panel.app; +app.get("/somePathWhichDoesNotExist",(req,res)=>{ + var check = panel.isLoggedIn(req,res); + if(a==true){res.send("Logged in")} + else{res.send("Not logged in")} +}) +```