mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-05-24 00:52:23 -04:00
* Tweaked the logging output * Started implementing some basic idea for devices * Updated Email Service with new API routes * Implemented basic DB structure and some APIs to prep for the UI and flows. * Added an abstract class to make Unit testing easier. * Removed dependency we don't need * Updated the UI to be able to show devices and add new devices. Email field will update the platform if the user hasn't interacted with it already. * Added ability to delete a device as well * Basic ability to send files to devices works * Refactored Action code to pass ActionItem back and allow for dynamic children based on an Observable (api). Hooked in ability to send a chapter to a device. There is no logic in the FE to validate type. * Fixed a broken unit test * Implemented the ability to edit a device * Code cleanup * Fixed a bad success message * Fixed broken unit test from updating mock layer
29 lines
784 B
C#
29 lines
784 B
C#
using System;
|
|
using System.IO;
|
|
using API.Services;
|
|
using Microsoft.AspNetCore.Authorization;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using Microsoft.Extensions.Logging;
|
|
|
|
namespace API.Controllers;
|
|
|
|
[AllowAnonymous]
|
|
public class FallbackController : Controller
|
|
{
|
|
// ReSharper disable once S4487
|
|
// ReSharper disable once NotAccessedField.Local
|
|
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");
|
|
}
|
|
}
|
|
|