Skip to content

Commit 35a4eee

Browse files
committed
Remove unused DataAnnotations
1 parent 57cb7de commit 35a4eee

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Core/Handlers/UpdateHandler.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
using System.ComponentModel.DataAnnotations;
21
using Core.Clients;
32
using Core.Options;
43
using Microsoft.AspNetCore.Mvc;
@@ -11,8 +10,8 @@ public static class UpdateHandler
1110
public static async Task<IResult> Handle(
1211
CloudflareClient cloudflareClient,
1312
IOptions<List<RecordOptions>> recordOptions,
14-
[FromQuery, Required] string key,
15-
[FromQuery, Required] string ipv4
13+
[FromQuery] string key,
14+
[FromQuery] string ipv4
1615
)
1716
{
1817
var record = recordOptions.Value.Single(r => r.Key == key);

0 commit comments

Comments
 (0)