(app)
Automatically registers all module that need some initializing with application.
    To-do: make it not only for shared modules
Automatically registers all module that need some initializing with application.
    To-do: make it not only for shared modules
Automatically registers all module that need some initializing with application . To - do : make it not only for shared modules
def register_components(app):
    '''
    Automatically registers all module that need some initializing with application.
    To-do: make it not only for shared modules
    '''
    shared_modules_folder = Path.joinpath(Path.cwd(), 'src/modules', )
    __register_extensions_auto(shared_modules_folder, app, 'modules', 'api')

    services_modules_folder = Path.joinpath(Path.cwd(), 'src/shared/services')
    __register_extensions_auto(services_modules_folder, app, 'shared.services', 'service')
def register_components ( app ) : shared_modules_folder = Path . joinpath ( Path . cwd ( ) , 'src/modules' , ) __register_extensions_auto ( shared_modules_folder , app , 'modules' , 'api' ) services_modules_folder = Path . joinpath ( Path . cwd ( ) , 'src/shared/services' ) __register_extensions_auto ( services_modules_folder , app , 'shared.services' , 'service' )