still figuring out how to handle default note name...
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user