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
Sometimes, to maintain the consistency of the entrance, we will define all endpoints in one file, and export a class_views tuple. all of the endpoints will in class_views tuple, include authenticate method. for example:
I saw the class Initialize, in __add_endpoints function, we didn't do duplicate detection, and it will lead to RouteExists Error.
perhaps we need do duplicate detection in __add_endpoints function or __add_class_views function, and let authenticate to be a not require argument. to make our code more elegant and clean.
The text was updated successfully, but these errors were encountered:
Support add authenticate method from
class_views
.The current situation is when we Initialize, we must give the
authenticate
argument, or else raise AuthenticateNotImplemented Error:Sometimes, to maintain the consistency of the entrance, we will define all endpoints in one file, and export a class_views tuple. all of the endpoints will in class_views tuple, include authenticate method. for example:
now we must initialize it in
app.py
like this:or else it will raise RouteExists Exception.
I saw the class
Initialize
, in__add_endpoints
function, we didn't do duplicate detection, and it will lead toRouteExists
Error.perhaps we need do duplicate detection in
__add_endpoints
function or__add_class_views
function, and letauthenticate
to be a not require argument. to make our code more elegant and clean.The text was updated successfully, but these errors were encountered: