summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/Controllers/ModsApiController.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/SMAPI.Web/Controllers/ModsApiController.cs')
-rw-r--r--src/SMAPI.Web/Controllers/ModsApiController.cs10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/SMAPI.Web/Controllers/ModsApiController.cs b/src/SMAPI.Web/Controllers/ModsApiController.cs
index 1412105a..f65b164f 100644
--- a/src/SMAPI.Web/Controllers/ModsApiController.cs
+++ b/src/SMAPI.Web/Controllers/ModsApiController.cs
@@ -280,11 +280,13 @@ namespace StardewModdingAPI.Web.Controllers
if (entry != null)
{
if (entry.NexusID.HasValue)
- yield return $"Nexus:{entry.NexusID}";
- if (entry.ChucklefishID.HasValue)
- yield return $"Chucklefish:{entry.ChucklefishID}";
+ yield return $"{ModRepositoryKey.Nexus}:{entry.NexusID}";
if (entry.ModDropID.HasValue)
- yield return $"ModDrop:{entry.ModDropID}";
+ yield return $"{ModRepositoryKey.ModDrop}:{entry.ModDropID}";
+ if (entry.CurseForgeID.HasValue)
+ yield return $"{ModRepositoryKey.CurseForge}:{entry.CurseForgeID}";
+ if (entry.ChucklefishID.HasValue)
+ yield return $"{ModRepositoryKey.Chucklefish}:{entry.ChucklefishID}";
}
}