Add static resource to the server.

This commit is contained in:
Andres Gomez, Thomas (ITDV RL) 2025-12-10 22:30:54 +01:00
parent 2b09126650
commit 1c9b1c49b1
2 changed files with 20 additions and 0 deletions

View file

@ -14,6 +14,16 @@ class PathProvider(
}
}
fun resourcesPath(
os: OperatingSystem = this.operatingSystem,
app: String = this.appName,
): String {
return when (os) {
OperatingSystem.Windows -> "${storePath(os = os, app = app)}resources\\"
OperatingSystem.Macintosh -> "${storePath(os = os, app = app)}resources/"
}
}
fun imagesStorePath(
os: OperatingSystem = this.operatingSystem,
app: String = this.appName,