Skip to content
This repository was archived by the owner on Jun 22, 2025. It is now read-only.

Commit ff5a7ef

Browse files
Sentinentsamuelhwilliams
authored andcommitted
Update custom_app_routes example to not use beaker middleware, but include middleware usage in comments
1 parent 474fe7e commit ff5a7ef

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed
Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
import eel
22
import bottle
3-
from beaker.middleware import SessionMiddleware
3+
# from beaker.middleware import SessionMiddleware
44

55
app = bottle.Bottle()
66
@app.route('/custom')
77
def custom_route():
88
return 'Hello, World!'
99

10+
eel.init('web')
11+
1012
# need to manually add eel routes if we are wrapping our Bottle instance with middleware
11-
eel.add_eel_routes(app)
12-
middleware = SessionMiddleware(app)
13+
# eel.add_eel_routes(app)
14+
# middleware = SessionMiddleware(app)
15+
# eel.start('index.html', app=middleware)
1316

14-
eel.init('web')
15-
eel.start('index.html', app=middleware)
17+
eel.start('index.html', app=app)

0 commit comments

Comments
 (0)