Tweak how default config is defined for auth API views

so it may be more easily extended
This commit is contained in:
Lance Edgar 2020-02-10 14:13:50 -06:00
parent 4a35620820
commit 5faced8d22

View file

@ -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')