Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
justinyoo authored May 26, 2024
1 parent c794acd commit 0ee35ee
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# MelonChart.NET
# MelonChart.NET [![NuGet Version](https://img.shields.io/nuget/v/MelonChart.NET?logo=nuget)](https://www.nuget.org/packages/MelonChart.NET) [![NuGet Downloads](https://img.shields.io/nuget/dt/MelonChart.NET?logo=nuget)](https://www.nuget.org/packages/MelonChart.NET)

This is the Melon chart scraping library written in .NET - Top 100, Hot 100, Daily, Weekly and Monthly
This is the Melon chart scraping library written in .NET - Top 100, Hot 100, Daily 100, Weekly 100 and Monthly 100

## Prerequisites

Expand Down Expand Up @@ -58,30 +58,30 @@ This is the Melon chart scraping library written in .NET - Top 100, Hot 100, Dai
app.MapGet("/top100", async ([FromKeyedServices(ChartTypes.Top100)] IChart chart) =>
{
var collection = await chart.GetChartAsync();
return Results.Json(collection.Select(p => new { p.Rank, p.Title, p.Artist }));
return Results.Json(collection.Items);
});
app.MapGet("/hot100", async ([FromKeyedServices(ChartTypes.Hot100)] IChart chart) =>
{
var collection = await chart.GetChartAsync();
return Results.Json(collection.Select(p => new { p.Rank, p.Title, p.Artist }));
return Results.Json(collection.Items);
});
app.MapGet("/daily100", async ([FromKeyedServices(ChartTypes.Daily100)] IChart chart) =>
{
var collection = await chart.GetChartAsync();
return Results.Json(collection.Select(p => new { p.Rank, p.Title, p.Artist }));
return Results.Json(collection.Items);
});
app.MapGet("/weekly100", async ([FromKeyedServices(ChartTypes.Weekly100)] IChart chart) =>
{
var collection = await chart.GetChartAsync();
return Results.Json(collection.Select(p => new { p.Rank, p.Title, p.Artist }));
return Results.Json(collection.Items);
});
app.MapGet("/monthly100", async ([FromKeyedServices(ChartTypes.Monthly100)] IChart chart) =>
{
var collection = await chart.GetChartAsync();
return Results.Json(collection.Select(p => new { p.Rank, p.Title, p.Artist }));
return Results.Json(collection.Items);
});
```

0 comments on commit 0ee35ee

Please sign in to comment.