mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 06:42:16 +00:00
Added ability to list APIs
This commit is contained in:
@@ -15,6 +15,10 @@ def get_api(api):
|
||||
|
||||
return getattr(mod, mod.ServiceClass)()
|
||||
|
||||
def list_apis():
|
||||
import os.path, pkgutil
|
||||
pkgpath = os.path.dirname(__file__)
|
||||
return [name for _, name, _ in pkgutil.iter_modules([pkgpath])]
|
||||
|
||||
class BaseService():
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user