Add CV template preview and PDF export pipeline

This commit is contained in:
2026-03-29 00:43:54 +01:00
parent 2392b135c2
commit 839a2ed80d
15 changed files with 2288 additions and 97 deletions
+8
View File
@@ -8,6 +8,7 @@ namespace JobTrackerApi.Services
public string DataRoot { get; }
public string AttachmentsRoot { get; }
public string CvArtifactsRoot { get; }
public string CvExportsRoot { get; }
public AppPaths(IConfiguration cfg, IHostEnvironment env)
{
@@ -31,6 +32,13 @@ namespace JobTrackerApi.Services
Directory.CreateDirectory(cvArtifactsRoot);
CvArtifactsRoot = cvArtifactsRoot;
var cvExportsRoot = (cfg["Data:CvExportsRoot"] ?? "").Trim();
if (string.IsNullOrWhiteSpace(cvExportsRoot)) cvExportsRoot = Path.Combine(DataRoot, "CvExports");
if (!Path.IsPathRooted(cvExportsRoot)) cvExportsRoot = Path.Combine(env.ContentRootPath, cvExportsRoot);
Directory.CreateDirectory(cvExportsRoot);
CvExportsRoot = cvExportsRoot;
}
public string GetDbPath(string fileName = "jobtracker.db") => Path.Combine(DataRoot, fileName);