All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.duracloud.syncui.controller.HomeController Maven / Gradle / Ivy

There is a newer version: 8.1.0
Show newest version
/*
 * 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://duracloud.org/license/
 */
package org.duracloud.syncui.controller;

import org.duracloud.syncui.service.SyncConfigurationManager;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * A spring controller for the welcome page.
 * 
 * @author Daniel Bernstein
 * 
 */
@Controller
public class HomeController {
    private static Logger log = LoggerFactory.getLogger(HomeController.class);

    private SyncConfigurationManager syncConfigurationManager;

    @Autowired
    public HomeController(SyncConfigurationManager syncConfigurationManager) {
        this.syncConfigurationManager = syncConfigurationManager;
    }

    @RequestMapping(value = { "/" })
    public String get() {
        log.debug("accessing welcome page");
        return "redirect:/status";
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy