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 | 70662b4da01a2daa2ece586e5ba6e78bb7a7eb4d (patch) | |
| tree | a77e4c618eece790f7b7f746699f2e2aa5151e71 /docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/CrudWebApplicationExtensions.cs | |
| parent | 94d39ea715ae81ef93e1bc289762b7500db197f9 (diff) | |
| download | crupest-70662b4da01a2daa2ece586e5ba6e78bb7a7eb4d.tar.gz crupest-70662b4da01a2daa2ece586e5ba6e78bb7a7eb4d.tar.bz2 crupest-70662b4da01a2daa2ece586e5ba6e78bb7a7eb4d.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;      }  } | 
