Endpoint to change all information of locallibrary

This commit is contained in:
2025-03-19 22:44:31 +01:00
parent cef3b24efd
commit 93ad691971
2 changed files with 42 additions and 2 deletions

View File

@ -1,3 +1,13 @@
namespace API.APIEndpointRecords;
public record NewLibraryRecord(string path, string name);
public record NewLibraryRecord(string path, string name)
{
public bool Validate()
{
if (path.Length < 1) //TODO Better Path validation
return false;
if (name.Length < 1)
return false;
return true;
}
}