aboutsummaryrefslogtreecommitdiffstats
path: root/src/Data/Static/AppPaths.cs
blob: 4073a75e7487f8959a2fec7fb09e331a165ff3a4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
using System.IO;
using VSH.Data.Miscellaneous;

namespace VSH.Data.Static;

public static class AppPaths
{
	public static AppPath WwwRoot => new() {
			HostPath = Path.Combine(Directory.GetCurrentDirectory(), "wwwroot"),
			WebPath = "/"
	};

	public static AppPath Assets => new() {
			HostPath = Path.Combine(WwwRoot.HostPath, "assets"),
			WebPath = "/assets"
	};

	public static AppPath ProductImages => new() {
			HostPath = Path.Combine(Assets.HostPath, "images", "products"),
			WebPath = Path.Combine(Assets.WebPath, "images", "products")
	};

	public static AppPath DocumentImages => new() {
			HostPath = Path.Combine(Assets.HostPath, "images", "documents"),
			WebPath = Path.Combine(Assets.WebPath, "images", "documents")
	};

	public static AppPath DataProtectionKeys => new() {
			HostPath = Path.Combine(AppData.HostPath, "DPKeys"),
	};

	public static AppPath AppData => new() {
			HostPath = Path.Combine(Directory.GetCurrentDirectory(), "AppData"),
	};

	public static AppPath DefaultProductImage => new() {
			HostPath = Path.Combine(Assets.HostPath, "profile", "innrammet.svg"),
			WebPath = Path.Combine(Assets.WebPath, "profile", "innrammet.svg")
	};
}