python-eel / Eel

A little Python library for making simple Electron-like HTML/JS GUI apps
MIT License
6.44k stars 587 forks source link

How to protect routes and defining startup page #563

Open GBry opened 2 years ago

GBry commented 2 years ago

Hi, I decided to have my login page pass through a python function, then if true it will proceed. However, is there any way to protect the page after login, if the user is not logged in?

Also, is there any way to set the default page when we open "/"?

I understand that eel is built with Bottle, but how do we do Bottle configs from Eel?

Thanks