cli helped

This commit is contained in:
Paul Schneider 2021-05-11 02:38:52 +01:00
commit 5bbcf9cb29
4 changed files with 186 additions and 22 deletions

View file

@ -92,6 +92,7 @@ namespace nuget_host.Controllers
if (!destdir.Exists) destdir.Create();
source.MoveTo(path);
logger.LogWarning($"200: {entry.Name}");
}
}
@ -104,12 +105,13 @@ namespace nuget_host.Controllers
}
else
{
logger.LogWarning("400");
return new BadRequestObjectResult(ViewData);
}
return Ok(ViewData);
}
[HttpGet("Packages/{spec}")]
[HttpGet("packages/{spec}")]
public IActionResult Index(string spec)
{
if (string.IsNullOrEmpty(spec))