package org.synyx.urlaubsverwaltung.web.login;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
/**
* @author David Schilling - schilling@synyx.de
*/
@Controller
@RequestMapping("/login")
public class LoginController {
private final String applicationVersion;
@Autowired
public LoginController(@Value("${info.app.version}") String applicationVersion) {
this.applicationVersion = applicationVersion;
}
@RequestMapping(value = "", method = RequestMethod.GET)
public String login(Model model) {
model.addAttribute("version", applicationVersion);
return "login/login";
}
}