Skip to content

Commit

Permalink
Update panel.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Bumblebee-3 authored Jul 23, 2023
1 parent 9e1ada1 commit 3b39d70
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/panel.md
Original file line number Diff line number Diff line change
Expand Up @@ -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")}
})
```

0 comments on commit 3b39d70

Please sign in to comment.