mirror of
https://github.com/Kareadita/Kavita.git
synced 2026-06-06 06:45:18 -04:00
OPDS Enhancements, Epub fixes, and a lot more (#4035)
Co-authored-by: Amelia <77553571+Fesaa@users.noreply.github.com> Co-authored-by: Robbie Davis <robbie@therobbiedavis.com> Co-authored-by: Fabian Pammer <fpammer@mantro.net> Co-authored-by: Vinícius Licz <vinilicz@gmail.com>
This commit is contained in:
@@ -20,8 +20,13 @@ public class FallbackController : Controller
|
||||
_taskScheduler = taskScheduler;
|
||||
}
|
||||
|
||||
public PhysicalFileResult Index()
|
||||
public IActionResult Index()
|
||||
{
|
||||
if (HttpContext.Request.Path.StartsWithSegments("/api"))
|
||||
{
|
||||
return NotFound();
|
||||
}
|
||||
|
||||
return PhysicalFile(Path.Combine(Directory.GetCurrentDirectory(), "wwwroot", "index.html"), "text/HTML");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user