aboutsummaryrefslogtreecommitdiff
path: root/back-end
diff options
context:
space:
mode:
authorLibravatar vnugent <public@vaughnnugent.com>2024-04-25 14:55:50 -0400
committerLibravatar vnugent <public@vaughnnugent.com>2024-04-25 14:55:50 -0400
commit9c5b86c2d7f2af7c5905a1cd63aacb8927d7ec4c (patch)
treef18598298f4344042452a63bf7b94f5d69e46b93 /back-end
parent86fdda1fdece6e8dc1e655b81bcd21a852c5d3fc (diff)
latest noscryp integrations and testing
Diffstat (limited to 'back-end')
-rw-r--r--back-end/plugins/nvault/src/Endpoints/SettingSyncEndpoint.cs30
-rw-r--r--back-end/plugins/nvault/src/Endpoints/WellKnownEndpoint.cs7
-rw-r--r--back-end/plugins/nvault/src/NVault.csproj6
3 files changed, 6 insertions, 37 deletions
diff --git a/back-end/plugins/nvault/src/Endpoints/SettingSyncEndpoint.cs b/back-end/plugins/nvault/src/Endpoints/SettingSyncEndpoint.cs
deleted file mode 100644
index 05322a5..0000000
--- a/back-end/plugins/nvault/src/Endpoints/SettingSyncEndpoint.cs
+++ /dev/null
@@ -1,30 +0,0 @@
-// Copyright (C) 2024 Vaughn Nugent
-//
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Affero General Public License as
-// published by the Free Software Foundation, either version 3 of the
-// License, or (at your option) any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU Affero General Public License for more details.
-//
-// You should have received a copy of the GNU Affero General Public License
-// along with this program. If not, see <https://www.gnu.org/licenses/>.
-
-using VNLib.Plugins;
-using VNLib.Plugins.Essentials.Endpoints;
-using VNLib.Plugins.Extensions.Loading;
-
-namespace NVault.Plugins.Vault.Endpoints
-{
- [ConfigurationName("sync")]
- internal sealed class SettingSyncEndpoint : ProtectedWebEndpoint
- {
- public SettingSyncEndpoint(PluginBase plugin, IConfigScope config)
- {
-
- }
- }
-}
diff --git a/back-end/plugins/nvault/src/Endpoints/WellKnownEndpoint.cs b/back-end/plugins/nvault/src/Endpoints/WellKnownEndpoint.cs
index d47a6d4..27b3b9e 100644
--- a/back-end/plugins/nvault/src/Endpoints/WellKnownEndpoint.cs
+++ b/back-end/plugins/nvault/src/Endpoints/WellKnownEndpoint.cs
@@ -53,12 +53,11 @@ namespace NVault.Plugins.Vault.Endpoints
//We cant get the account's path programatically, so the user will have to configure it manually
string accountsPath = config.GetRequiredProperty("accounts_path", p => p.GetString()!);
+ string appDataPath = config.GetRequiredProperty("appdata_path", p => p.GetString()!);
IConfigScope vaultEp = plugin.GetConfigForType<Endpoint>();
string nvaultPath = vaultEp.GetRequiredProperty("path", p => p.GetString()!);
-
- IConfigScope syncConfig = plugin.GetConfigForType<SettingSyncEndpoint>();
- string syncPath = syncConfig.GetRequiredProperty("path", p => p.GetString()!);
+
//Build the discovery result to serialize to json
NvaultDiscoveryResult res = new()
@@ -67,7 +66,7 @@ namespace NVault.Plugins.Vault.Endpoints
Endpoints = [
GetEndpoint("accounts", accountsPath),
GetEndpoint("nostr", nvaultPath),
- GetEndpoint("sync", syncPath)
+ GetEndpoint("sync", appDataPath)
]
};
diff --git a/back-end/plugins/nvault/src/NVault.csproj b/back-end/plugins/nvault/src/NVault.csproj
index 57561d8..cddfa05 100644
--- a/back-end/plugins/nvault/src/NVault.csproj
+++ b/back-end/plugins/nvault/src/NVault.csproj
@@ -21,9 +21,9 @@
<ItemGroup>
<PackageReference Include="FluentValidation" Version="11.9.0" />
- <PackageReference Include="VNLib.Plugins.Extensions.Data" Version="0.1.0-ci0053" />
- <PackageReference Include="VNLib.Plugins.Extensions.Validation" Version="0.1.0-ci0053" />
- <PackageReference Include="VNLib.Plugins.Extensions.Loading.Sql" Version="0.1.0-ci0053" />
+ <PackageReference Include="VNLib.Plugins.Extensions.Data" Version="0.1.0-ci0062" />
+ <PackageReference Include="VNLib.Plugins.Extensions.Validation" Version="0.1.0-ci0062" />
+ <PackageReference Include="VNLib.Plugins.Extensions.Loading.Sql" Version="0.1.0-ci0062" />
</ItemGroup>
<ItemGroup>