diff options
author | crupest <crupest@outlook.com> | 2022-12-14 16:07:16 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-12-20 20:32:53 +0800 |
commit | 3af36448bed4f825331dc359615f8c4acf825f58 (patch) | |
tree | a77e4c618eece790f7b7f746699f2e2aa5151e71 /docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/CrudWebApplicationExtensions.cs | |
parent | b55a980d665b5ab37f219b0dbcde09ecd23b0b75 (diff) | |
download | crupest-3af36448bed4f825331dc359615f8c4acf825f58.tar.gz crupest-3af36448bed4f825331dc359615f8c4acf825f58.tar.bz2 crupest-3af36448bed4f825331dc359615f8c4acf825f58.zip |
Develop secret api. v39
Diffstat (limited to 'docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/CrudWebApplicationExtensions.cs')
-rw-r--r-- | docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/CrudWebApplicationExtensions.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/CrudWebApplicationExtensions.cs b/docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/CrudWebApplicationExtensions.cs index e9999af..9f70f35 100644 --- a/docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/CrudWebApplicationExtensions.cs +++ b/docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/CrudWebApplicationExtensions.cs @@ -12,6 +12,13 @@ public static class CrudWebApplicationExtensions await context.ResponseJsonAsync(allEntities.Select(e => entityJsonHelper.ConvertEntityToDictionary(e))); }); + app.MapPost(path, async (context) => + { + var crudService = context.RequestServices.GetRequiredService<CrudService<TEntity>>(); + var entityJsonHelper = context.RequestServices.GetRequiredService<EntityJsonHelper<TEntity>>(); + // TODO: Continue here. + }); + return app; } } |