def METHOD_NAME(app, base_path, admins_only=False, endpoint=None):
    """
    Registers a directory to serve assets
    :param app: A CTFd application
    :param string base_path: The path to the directory
    :param boolean admins_only: Whether or not the assets served out of the directory should be accessible to the public
    :return:
    """
    base_path = base_path.strip("/")
    if endpoint is None:
        endpoint = base_path.replace("/", ".")
    def assets_handler(path):
        return send_from_directory(base_path, path)
    rule = "/" + base_path + "/<path:path>"
    app.add_url_rule(rule=rule, endpoint=endpoint, view_func=assets_handler)