/**
 * The contents of this file are subject to the license and copyright
 * detailed in the LICENSE and NOTICE files at the root of the source
 * tree and available online at
 *
 * http://www.dspace.org/license/
 */
package org.dspace.app.rest.repository;


import javax.servlet.http.HttpServletRequest;

import org.dspace.app.rest.converter.RootConverter;
import org.dspace.app.rest.model.RootRest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * This class' purpose is to serve as a middle ground between the conversion to the RootRest and the controller
 */
@Component
public class RootRestRepository {

    @Autowired
    RootConverter rootConverter;

    public RootRest getRoot(HttpServletRequest request) {
        return rootConverter.convert(request);
    }
}
