aboutsummaryrefslogtreecommitdiff
path: root/dropped/docker/crupest-api/CrupestApi/CrupestApi.Secrets/SecretsExtensions.cs
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-02-19 02:05:39 +0800
committerYuqian Yang <crupest@crupest.life>2025-02-19 02:42:42 +0800
commitb524986daf378cfe7aeafddafa98e9f978d26729 (patch)
tree18bce74a6c0851789e1d20b38110a177d94f7eb6 /dropped/docker/crupest-api/CrupestApi/CrupestApi.Secrets/SecretsExtensions.cs
parent694edd52d51f61460117d4f7e4e62e6b990c5e32 (diff)
downloadcrupest-b524986daf378cfe7aeafddafa98e9f978d26729.tar.gz
crupest-b524986daf378cfe7aeafddafa98e9f978d26729.tar.bz2
crupest-b524986daf378cfe7aeafddafa98e9f978d26729.zip
chore(docker): remove crupest-api, forgejo and move dropped.
Diffstat (limited to 'dropped/docker/crupest-api/CrupestApi/CrupestApi.Secrets/SecretsExtensions.cs')
-rw-r--r--dropped/docker/crupest-api/CrupestApi/CrupestApi.Secrets/SecretsExtensions.cs19
1 files changed, 0 insertions, 19 deletions
diff --git a/dropped/docker/crupest-api/CrupestApi/CrupestApi.Secrets/SecretsExtensions.cs b/dropped/docker/crupest-api/CrupestApi/CrupestApi.Secrets/SecretsExtensions.cs
deleted file mode 100644
index e09887b..0000000
--- a/dropped/docker/crupest-api/CrupestApi/CrupestApi.Secrets/SecretsExtensions.cs
+++ /dev/null
@@ -1,19 +0,0 @@
-using CrupestApi.Commons.Secrets;
-using CrupestApi.Commons.Crud;
-
-namespace CrupestApi.Secrets;
-
-public static class SecretsExtensions
-{
- public static IServiceCollection AddSecrets(this IServiceCollection services)
- {
- services.AddCrud<SecretInfo, SecretService>();
- return services;
- }
-
- public static WebApplication MapSecrets(this WebApplication webApplication, string path = "/api/secrets")
- {
- webApplication.MapCrud<SecretInfo>(path, SecretsConstants.SecretManagementKey);
- return webApplication;
- }
-}