-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Trying to add extra filter to the bottle router:
app = udon.wsgi.APIStack(prefix="/api")
app.app.router.add_filter("uuid", uuid_filter)
app.install_module("my_module")
But the bottle instance is overridden at each call to app.install_module so cannot use the new uuid filter in my_module.
Is there a reason for creating a new instance of bottle here:
Line 57 in 0b61167
| app = stack.app_factory() |
Instead of doing:
app = stack.app
Or is there a better way for customizing the APIStack router ?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels