Can you not add middleware to an existing litestar.Litestar instance? #3244
-
I had a I knew you could register route handlers after instantiation with the Is this behavior intentional? I would expect either for the middleware to work, or that it was simply impossible to modify the attribute. Now it just seems like a bit of "gotcha". |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
You are right that you cannot add middleware to an existing # imports
app = Litestar([..]) As for why the attribute can be modified, it's because Maybe we could allow users to modify the |
Beta Was this translation helpful? Give feedback.
#3257