We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 57cb7de commit 35a4eeeCopy full SHA for 35a4eee
src/Core/Handlers/UpdateHandler.cs
@@ -1,4 +1,3 @@
1
-using System.ComponentModel.DataAnnotations;
2
using Core.Clients;
3
using Core.Options;
4
using Microsoft.AspNetCore.Mvc;
@@ -11,8 +10,8 @@ public static class UpdateHandler
11
10
public static async Task<IResult> Handle(
12
CloudflareClient cloudflareClient,
13
IOptions<List<RecordOptions>> recordOptions,
14
- [FromQuery, Required] string key,
15
- [FromQuery, Required] string ipv4
+ [FromQuery] string key,
+ [FromQuery] string ipv4
16
)
17
{
18
var record = recordOptions.Value.Single(r => r.Key == key);
0 commit comments