Skip to content

Commit

Permalink
fix loader endpoint, add more project types
Browse files Browse the repository at this point in the history
  • Loading branch information
Zechiax committed Apr 21, 2024
1 parent 75f69ff commit 92da875
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
14 changes: 12 additions & 2 deletions src/Modrinth.Net/Models/Enums/Project/ProjectType.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace Modrinth.Models.Enums.Project;

/// <summary>
/// Type of a project
/// Type of project
/// </summary>
public enum ProjectType
{
Expand All @@ -28,5 +28,15 @@ public enum ProjectType
/// <summary>
/// Project is a datapack
/// </summary>
Datapack
Datapack,

/// <summary>
/// Project is a plugin
/// </summary>
Plugin,

/// <summary>
/// Generic project type
/// </summary>
Project
}
7 changes: 3 additions & 4 deletions test/Modrinth.Net.Test/ModrinthApiTests/EndpointTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ namespace Modrinth.Net.Test.ModrinthApiTests;
[SetUpFixture]
public class EndpointTests
{
protected const string ModrinthNetTestProjectId = "zNefrWnf";
protected const string ModrinthNetTestUploadedVersionId = "dJIVHDfy";
protected const string ModrinthNetTestProjectId = "8crNATHo";

protected const string TestProjectSlug = "fabric-api";

Expand Down Expand Up @@ -62,13 +61,13 @@ public void SetUp()
var configAuth = new ModrinthClientConfig
{
ModrinthToken = token,
BaseUrl = ModrinthClient.StagingBaseUrl,
BaseUrl = ModrinthClient.BaseUrl,
UserAgent = userAgent.ToString()
};

var configNoAuth = new ModrinthClientConfig
{
BaseUrl = ModrinthClient.StagingBaseUrl,
BaseUrl = ModrinthClient.BaseUrl,
UserAgent = userAgent.ToString()
};

Expand Down

0 comments on commit 92da875

Please sign in to comment.