diff options
| author | Jake Mannens <jake@asger.xyz> | 2023-08-17 13:54:01 +1000 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2025-08-18 17:03:21 +1000 |
| commit | 7dcc15cb52c29cc1c0112e3af2cf985b26cd7653 (patch) | |
| tree | b12e2c30c8a1717079f5704151af743347c40d1e /Services/ConfigService.cs | |
| parent | f150338f7a275bd7664f59a4365f163a17049bd0 (diff) | |
Fixed implicit tagging completely and switched DB to PostgreSQL
Diffstat (limited to 'Services/ConfigService.cs')
| -rw-r--r-- | Services/ConfigService.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Services/ConfigService.cs b/Services/ConfigService.cs index 6ba3936..814a47b 100644 --- a/Services/ConfigService.cs +++ b/Services/ConfigService.cs @@ -1,9 +1,9 @@ namespace HyperBooru.Services; public interface IConfigService { - public string DataPath { get; } - public string DbPath { get; } - public string MediaBasePath { get; } + public string DataPath { get; } + public string DbConnectionString { get; } + public string MediaBasePath { get; } public string GetPath(Media media); public string GetPath(Media media, int width, int height); @@ -38,8 +38,8 @@ public class ConfigService : IConfigService { } } - public string DbPath => - Path.Join(DataPath, $"{AppName}.db"); + public string DbConnectionString => + config.GetConnectionString("DefaultConnection"); public string MediaBasePath => Path.Join(DataPath, "media"); |
