Actix-web: Is JsonConfig globally configurable?

Created on 14 Apr 2019  路  2Comments  路  Source: actix/actix-web

Hi,

Is there a way to apply JsonConfig rules to the whole app instead of per route?
My app has a lot of routes and it's a bit tedious to configure each of them one by one.

Anyway, brilliant job!
Thank you.

C-improvement

Most helpful comment

Hmm that actually might be good idea for macros to declare routes.
And having some ability to define config as constant would be even better

All 2 comments

Hmm that actually might be good idea for macros to declare routes.
And having some ability to define config as constant would be even better

implemented in master

Was this page helpful?
0 / 5 - 0 ratings