mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 23:02:19 +00:00
Added ability to switch off Service API
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
import settings
|
||||
|
||||
def get_api(api):
|
||||
|
||||
if settings.DISABLE_SERVICES:
|
||||
return BaseService()
|
||||
|
||||
try:
|
||||
mod = __import__(api)
|
||||
except ImportError:
|
||||
|
||||
Reference in New Issue
Block a user