* Added creation of request url #66

Merged
trent merged 1 commits from DelforSender into master 2026-01-23 08:55:03 +00:00

View File

@@ -2,7 +2,19 @@ namespace Services.Gitea;
public class GiteaConfiguration
{
public string Host { get; set; } = string.Empty;
public string Owner { get; set; } = string.Empty;
public string Repo { get; set; } = string.Empty;
public string Branch { get; set; } = string.Empty;
public string RequestUrl { get; set; }
public GiteaConfiguration()
{
RequestUrl = GetRequestUrl();
}
private string GetRequestUrl()
{
return $"{Host}/api/v1/repos/{Owner}/{Repo}/contents";
}
}