* Added creation of request url #66
@@ -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";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user