def load_urls(app):
    """
    Load applications routes
    :param app:
    :return:
    """
    prefix = app['args'].url_prefix or None
    if prefix is None:
        prefix = '/'
    if not prefix.startswith('/'):
        prefix = '/{}'.format(prefix)
    if not prefix.endswith('/'):
        prefix = '{}/'.format(prefix)
    from aiows.aioapp.urls import patterns
    for method, pattern in patterns:
        pattern[0] = prefix + pattern[0]
        getattr(app.router, 'add_{method}'.format(method=method))(*pattern)
