2
0
mirror of https://github.com/9ParsonsB/Pulsar.git synced 2025-07-01 16:33:43 -04:00

Rework Journal Handling

Stub ModulesInfo
This commit is contained in:
2024-04-21 17:10:45 +10:00
parent 4274496150
commit b8967814d5
14 changed files with 156 additions and 47 deletions

View File

@ -0,0 +1,12 @@
namespace Pulsar.Features.ModulesInfo;
[ApiController]
[Route("api/[controller]")]
public class ModulesInfoController(IModulesInfoService modulesInfo) : ControllerBase
{
[HttpGet]
public async Task<IActionResult> Get()
{
return Ok(modulesInfo.Get());
}
}

View File

@ -0,0 +1,24 @@
namespace Pulsar.Features.ModulesInfo;
using Observatory.Framework.Files;
public interface IModulesInfoService : IJournalHandler<ModuleInfoFile>;
public class ModulesInfoService : IModulesInfoService
{
public string FileName => FileHandlerService.ModulesInfoFileName;
public Task HandleFile(string filePath)
{
throw new NotImplementedException();
}
public bool ValidateFile(string filePath)
{
throw new NotImplementedException();
}
public Task<ModuleInfoFile> Get()
{
throw new NotImplementedException();
}
}