You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How can I configure an App inside a function?
In my local dev environment I am loading a yaml file for the token kwarg, however in prod I am getting env variables.
In other frameworks I would user a Router object for the decorators and then attach it to the App.
Is there a similar method ?
The text was updated successfully, but these errors were encountered:
As a simple solution, my comment at #245 (comment) may be helpful. In the example, I didn't use decorator methods in register_listeners method. But, if you have the listener function as an inner method inside the register_listeners method, you can use decorator too.
Also, we had a discussion about a kind of plugin systems on the App side at #320 . The idea mentioned in the issue may be something you may prefer. However, as I responded in the issue, we haven't decided any plans for something like that yet.
How can I configure an
App
inside a function?In my local dev environment I am loading a
yaml
file for thetoken
kwarg, however in prod I am getting env variables.In other frameworks I would user a
Router
object for the decorators and then attach it to theApp
.Is there a similar method ?
The text was updated successfully, but these errors were encountered: