Main change is now if you wish to define your own /init or /heartbeat just pass False to set_handlers and that's all, define those two routes or any of them.
This greatly simplifies a code, to be easy maintainable in future.
And from now documentation precisely says that recommend way is to use global auth AppAPIAuthMiddleware, to make developing of ExApps more simple.
Also disable_for parameter to AppAPIAuthMiddleware is now in fnmatch so for debug builds you just can pass ["*"] to disable auth.
Old
set_handlers
New
set_handlers
:Main change is now if you wish to define your own
/init
or/heartbeat
just passFalse
to set_handlers and that's all, define those two routes or any of them.This greatly simplifies a code, to be easy maintainable in future.
And from now documentation precisely says that recommend way is to use global auth
AppAPIAuthMiddleware
, to make developing of ExApps more simple.Also
disable_for
parameter to AppAPIAuthMiddleware is now infnmatch
so for debug builds you just can pass["*"]
to disable auth.