Skip to content

Commit

Permalink
fix: Make sure, expected paths in configuration exist
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX committed Sep 6, 2024
1 parent d605efd commit 32bedb7
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import kotlinx.serialization.json.JsonNamingStrategy
import kotlinx.serialization.json.decodeFromStream
import java.io.File
import java.nio.file.Path
import kotlin.io.path.createDirectories

/**
* The repository storing the configuration for the API.
Expand Down Expand Up @@ -60,6 +61,11 @@ internal class ConfigurationRepository(
@SerialName("about-json-file-path")
val about: APIAbout,
) {
init {
staticFilesPath.createDirectories()
versionedStaticFilesPath.createDirectories()
}

/**
* Am asset configuration whose asset is signed.
*
Expand Down

0 comments on commit 32bedb7

Please sign in to comment.