package com.ffii.core.common.web;

import org.springframework.security.core.Authentication;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/** @author Fung */
@Controller
public class RootController {
  @GetMapping("/")
  public String root(Authentication authentication) {
    return authentication == null ? "forward:/static/public/app/login.html"
        : "logged-in";
  }
}