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

Commit 1241ffc

Browse files
Fix middleware (#229)
* Use `bottle.route` rather than `app.route` We setup routing via the `bottle` module, not a Bottle instance. Fix #228 * Bump to v0.12.2
1 parent 75fe1a1 commit 1241ffc

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Change log
22

3+
### v0.12.2
4+
* Fix a bug that prevents using middleware via a custom Bottle.
5+
36
### v0.12.1
47
* Check that Chrome path is a file that exists on Windows before blindly returning it.
58

eel/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def run_lambda():
148148
app = _start_args['app'] # type: btl.Bottle
149149
for route_path, route_params in BOTTLE_ROUTES.items():
150150
route_func, route_kwargs = route_params
151-
app.route(path=route_path, callback=route_func, **route_kwargs)
151+
btl.route(path=route_path, callback=route_func, **route_kwargs)
152152

153153
return btl.run(
154154
host=HOST,

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
setup(
88
name='Eel',
9-
version='0.12.1',
9+
version='0.12.2',
1010
author='Chris Knott',
1111
author_email='chrisknott@hotmail.co.uk',
1212
url='https://github.com/samuelhwilliams/Eel',

0 commit comments

Comments
 (0)