Esempio n. 1
0
        public IActionResult Index()
        {
            //read config
            if (!ConfigUtil.hasInitial())
            {
                return(RedirectToAction("Config"));
            }

            return(Content(ResourceUtil.GetResource("static/index.html"), "text/html"));
            //return View();// Content("db backup index");
        }
Esempio n. 2
0
 public IActionResult Login()
 {
     return(Content(ResourceUtil.GetResource("static/login.html"), "text/html"));
 }
Esempio n. 3
0
 public IActionResult GetResource(string fileName)
 {
     return(Content(ResourceUtil.GetResource(fileName)));
 }
Esempio n. 4
0
 public IActionResult Config()
 {
     return(Content(ResourceUtil.GetResource("static/config.html"), "text/html"));
 }