diff options
Diffstat (limited to 'back-end')
-rw-r--r-- | back-end/plugins/nvault/src/Endpoints/SettingSyncEndpoint.cs | 30 | ||||
-rw-r--r-- | back-end/plugins/nvault/src/Endpoints/WellKnownEndpoint.cs | 7 | ||||
-rw-r--r-- | back-end/plugins/nvault/src/NVault.csproj | 6 |
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> |