Add static resource to the server.
This commit is contained in:
parent
2b09126650
commit
1c9b1c49b1
2 changed files with 20 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue