Tweak how default config is defined for auth API views
so it may be more easily extended
This commit is contained in:
parent
4a35620820
commit
5faced8d22
|
@ -128,6 +128,10 @@ class AuthenticationView(APIView):
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def defaults(cls, config):
|
def defaults(cls, config):
|
||||||
|
cls._auth_defaults(config)
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def _auth_defaults(cls, config):
|
||||||
|
|
||||||
# session
|
# session
|
||||||
config.add_route('api.session', '/session', request_method='GET')
|
config.add_route('api.session', '/session', request_method='GET')
|
||||||
|
|
Loading…
Reference in a new issue