still figuring out how to handle default note name...

This commit is contained in:
Ryan Peters
2023-08-04 18:26:22 -04:00
parent e89f9f74fe
commit 41de9e60c4
5 changed files with 27 additions and 6 deletions

View File

@ -4,9 +4,16 @@
{
private readonly string filePath;
private static readonly string defaultFilePath = "notes";
public FileNoteService(IConfiguration configuration)
{
filePath = configuration["FileNoteService:ContentFilePath"].Trim();
filePath = configuration["FileNoteService:ContentFilePath"];
if (string.IsNullOrWhiteSpace(filePath))
{
filePath = defaultFilePath;
}
}
public string GetText(string noteName)