aboutsummaryrefslogtreecommitdiffstats
path: root/src/Data/Static/AppPaths.cs
diff options
context:
space:
mode:
authorivarlovlie <git@ivarlovlie.no>2022-06-01 21:13:43 +0200
committerivarlovlie <git@ivarlovlie.no>2022-06-01 21:13:43 +0200
commit9383a2fb09ffb60cfe63683106945bd688affa59 (patch)
tree65b3f4b48841583e355887db5de5a16e7005fc87 /src/Data/Static/AppPaths.cs
downloadvinjesvingenhandel.no-9383a2fb09ffb60cfe63683106945bd688affa59.tar.xz
vinjesvingenhandel.no-9383a2fb09ffb60cfe63683106945bd688affa59.zip
feat: Initial commit after clean slate
Diffstat (limited to 'src/Data/Static/AppPaths.cs')
-rw-r--r--src/Data/Static/AppPaths.cs40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/Data/Static/AppPaths.cs b/src/Data/Static/AppPaths.cs
new file mode 100644
index 0000000..4073a75
--- /dev/null
+++ b/src/Data/Static/AppPaths.cs
@@ -0,0 +1,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")
+ };
+} \ No newline at end of file