Make it easier to extend "common" API views
This commit is contained in:
parent
6c5377fadc
commit
c48371ca2a
|
@ -2,7 +2,7 @@
|
|||
################################################################################
|
||||
#
|
||||
# Rattail -- Retail Software Framework
|
||||
# Copyright © 2010-2020 Lance Edgar
|
||||
# Copyright © 2010-2021 Lance Edgar
|
||||
#
|
||||
# This file is part of Rattail.
|
||||
#
|
||||
|
@ -111,6 +111,10 @@ class CommonView(APIView):
|
|||
|
||||
@classmethod
|
||||
def defaults(cls, config):
|
||||
cls._common_defaults(config)
|
||||
|
||||
@classmethod
|
||||
def _common_defaults(cls, config):
|
||||
|
||||
# about
|
||||
about = Service(name='about', path='/about')
|
||||
|
|
Loading…
Reference in a new issue