HomeController.cs 473 B

12345678910111213141516171819
  1. using Microsoft.AspNetCore.Hosting;
  2. using Microsoft.AspNetCore.Http;
  3. using Microsoft.AspNetCore.Mvc;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Threading.Tasks;
  8. namespace CZFW.CMS.Builder.Controllers
  9. {
  10. public class HomeController:Controller
  11. {
  12. public IActionResult Index([FromServices]IHostingEnvironment env)
  13. {
  14. return PhysicalFile(env.WebRootPath + "/index.html", "text/html");
  15. }
  16. }
  17. }