diff options
author | crupest <crupest@outlook.com> | 2022-12-10 11:35:49 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-12-20 20:32:53 +0800 |
commit | 2c9e38fbb434759593825f3893563dcd0c3806bb (patch) | |
tree | ee9543893288d456910284f889473341f8bc8c0b /docker/crupest-api/CrupestApi/CrupestApi.Commons | |
parent | d042a4553c4ed97f0d7eb97c7788d2794cdb85d8 (diff) | |
download | crupest-2c9e38fbb434759593825f3893563dcd0c3806bb.tar.gz crupest-2c9e38fbb434759593825f3893563dcd0c3806bb.tar.bz2 crupest-2c9e38fbb434759593825f3893563dcd0c3806bb.zip |
Develop secret api. v23
Diffstat (limited to 'docker/crupest-api/CrupestApi/CrupestApi.Commons')
-rw-r--r-- | docker/crupest-api/CrupestApi/CrupestApi.Commons/Json.cs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/docker/crupest-api/CrupestApi/CrupestApi.Commons/Json.cs b/docker/crupest-api/CrupestApi/CrupestApi.Commons/Json.cs index 3017176..4f5862f 100644 --- a/docker/crupest-api/CrupestApi/CrupestApi.Commons/Json.cs +++ b/docker/crupest-api/CrupestApi/CrupestApi.Commons/Json.cs @@ -29,11 +29,10 @@ public static class CrupestApiJsonExtensions } else { - throw new Exception("Only value not array or object is allowed.") + throw new Exception("Only value not array or object is allowed."); } } - public static IServiceCollection AddJsonOptions(this IServiceCollection services) { services.AddOptions<JsonSerializerOptions>(); @@ -44,8 +43,6 @@ public static class CrupestApiJsonExtensions config.PropertyNamingPolicy = JsonNamingPolicy.CamelCase; }); - // TODO: Register column type provided converters. - return services; } |