mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-05-24 00:52:23 -04:00
23 lines
681 B
C#
23 lines
681 B
C#
using System.IO;
|
|
using API.Interfaces;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace API.Controllers
|
|
{
|
|
public class FallbackController : Controller
|
|
{
|
|
// ReSharper disable once S4487
|
|
private readonly ITaskScheduler _taskScheduler;
|
|
|
|
public FallbackController(ITaskScheduler taskScheduler)
|
|
{
|
|
// This is used to load TaskScheduler on startup without having to navigate to a Controller that uses.
|
|
_taskScheduler = taskScheduler;
|
|
}
|
|
|
|
public ActionResult Index()
|
|
{
|
|
return PhysicalFile(Path.Combine(Directory.GetCurrentDirectory(), "wwwroot", "index.html"), "text/HTML");
|
|
}
|
|
}
|
|
} |