Skip to content

Commit

Permalink
Minor clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
IEvangelist committed Aug 31, 2021
1 parent f3db20a commit 5438d5e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions samples/HaveIBeenPwned.MinimalApi/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,28 +27,28 @@
// "Have I Been Pwned" Breaches API
app.MapGet("api/breaches/{breachName}",
async (string breachName, IPwnedBreachesClient client) =>
await client.GetBreachAsync(breachName));
await client.GetBreachAsync(breachName));
app.MapGet("api/breaches/headers/{domain}",
async (string? domain, IPwnedBreachesClient client) =>
await client.GetBreachAsync(domain!));
await client.GetBreachAsync(domain!));
app.MapGet("api/breaches/{account}/breaches",
async (string account, IPwnedBreachesClient client) =>
await client.GetBreachesForAccountAsync(account));
await client.GetBreachesForAccountAsync(account));
app.MapGet("api/breaches/{account}/headers",
async (string account, IPwnedBreachesClient client) =>
await client.GetBreachHeadersForAccountAsync(account));
await client.GetBreachHeadersForAccountAsync(account));
app.MapGet("api/breaches/dataclasses",
async (IPwnedBreachesClient client) =>
await client.GetDataClassesAsync());
await client.GetDataClassesAsync());

// "Have I Been Pwned" Pwned Passwords API
app.MapGet("api/passwords/{plainTextPassword}",
async (string plainTextPassword, IPwnedPasswordsClient client) =>
await client.GetPwnedPasswordAsync(plainTextPassword));

// "Have I Been Pwned" Pwned Pastes API
// "Have I Been Pwned" Pastes API
app.MapGet("api/pastes/{account}",
async (string account, IPwnedPastesClient client) =>
await client.GetPastesAsync(account));
await client.GetPastesAsync(account));

await app.RunAsync();

0 comments on commit 5438d5e

Please sign in to comment.