Add in the middle ware and Fallbackcontroller.

This commit is contained in:
Kham
2021-08-30 17:02:26 +10:00
parent 8bdf6dabdc
commit c5ab17115d
8 changed files with 183 additions and 79 deletions
@@ -0,0 +1,18 @@
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Threading.Tasks;
namespace CarParkValidationAPI.Controllers
{
public class FallbackController : Controller
{
public IActionResult Index()
{
return PhysicalFile(Path.Combine(Directory.GetCurrentDirectory(),
"wwwroot", "index.html"), "text/HTML");
}
}
}