diff options
| author | Jake Mannens <jake@asger.xyz> | 2023-08-17 13:54:01 +1000 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2023-08-17 13:54:01 +1000 |
| commit | a57b6ea2e174cedb04a422a05a180f377ed4c448 (patch) | |
| tree | cd454fa16c7d37a484268c722b9b57527dad2b4b /Services/ConfigService.cs | |
| parent | 727dcaacc6df8813a9296ac858dd51d11f3737b8 (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"); |
