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:
12
Pulsar/Features/ModulesInfo/ModulesInfoController.cs
Normal file
12
Pulsar/Features/ModulesInfo/ModulesInfoController.cs
Normal 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());
|
||||
}
|
||||
}
|
24
Pulsar/Features/ModulesInfo/ModulesInfoService.cs
Normal file
24
Pulsar/Features/ModulesInfo/ModulesInfoService.cs
Normal 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();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user