aboutsummaryrefslogtreecommitdiff
path: root/docker/crupest-api/CrupestApi/CrupestApi.Commons
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-12-10 11:35:49 +0800
committercrupest <crupest@outlook.com>2022-12-20 20:32:53 +0800
commitddce7fb5891d97eb66960687fe1fea4cb0bd7c94 (patch)
treeee9543893288d456910284f889473341f8bc8c0b /docker/crupest-api/CrupestApi/CrupestApi.Commons
parent7fd38e35fdc5248502008903cf7608d9b799fd7f (diff)
downloadcrupest-ddce7fb5891d97eb66960687fe1fea4cb0bd7c94.tar.gz
crupest-ddce7fb5891d97eb66960687fe1fea4cb0bd7c94.tar.bz2
crupest-ddce7fb5891d97eb66960687fe1fea4cb0bd7c94.zip
Develop secret api. v23
Diffstat (limited to 'docker/crupest-api/CrupestApi/CrupestApi.Commons')
-rw-r--r--docker/crupest-api/CrupestApi/CrupestApi.Commons/Json.cs5
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;
}