v3 API prefix
This commit is contained in:
parent
5d37238a44
commit
cd72b7b9aa
16 changed files with 24 additions and 32 deletions
|
|
@ -18,6 +18,7 @@ using NuGet.Configuration;
|
|||
using System.Threading.Tasks;
|
||||
using NuGet.Protocol.Core.Types;
|
||||
using NuGet.Common;
|
||||
using Isn.Abstract;
|
||||
|
||||
namespace isnd.host.tests
|
||||
{
|
||||
|
|
@ -72,7 +73,7 @@ namespace isnd.host.tests
|
|||
using (var serviceScope = server.Host.Services.CreateScope())
|
||||
{
|
||||
var isnSettings = serviceScope.ServiceProvider.GetService<IOptions<isnd.Entities.IsndSettings>>().Value;
|
||||
string pkgSourceUrl = isnSettings.ExternalUrl + "/pkgs/index.json";
|
||||
string pkgSourceUrl = isnSettings.ExternalUrl + "/" + Constants.APIPrefix + "index.json";
|
||||
using var client = new HttpClient();
|
||||
var response = client.GetAsync(pkgSourceUrl).GetAwaiter().GetResult();
|
||||
var body = response.Content.ReadAsStringAsync().GetAwaiter().GetResult();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue