package kr.co.accura.wbx.spring.admin;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@ConditionalOnProperty(name = "wbx.spring.admin-ui.enabled", havingValue = "true", matchIfMissing = true)
@Controller
public class AdminLoginController {

    @GetMapping("/admin/login")
    public String loginPage() {
        return "admin/login";
    }
}
