mirror of https://github.com/micromata/borgbackup-butler.git

Kai Reinhard
18.09.2021 ea8ad4f8ce1208a08efc8557240c5499b06e4b9a
borgbutler-server/src/main/kotlin/de/micromata/borgbutler/server/rest/BorgRepoConfigsRest.kt
@@ -18,17 +18,14 @@
class BorgRepoConfigsRest {
    /**
     * @param id            id or name of repo.
     * @param prettyPrinter If true then the json output will be in pretty format.
     * @return [BorgRepoConfig] as json string.
     * @see JsonUtils.toJson
     */
    @GetMapping
    fun getRepoConfig(
        @RequestParam("id") id: String,
        @RequestParam("prettyPrinter", required = false) prettyPrinter: Boolean?
    ): String {
        val repoConfig = ConfigurationHandler.getConfiguration().getRepoConfig(id)
        return JsonUtils.toJson(repoConfig, prettyPrinter == true)
        @RequestParam("id") id: String
    ): BorgRepoConfig? {
        return ConfigurationHandler.getConfiguration().getRepoConfig(id)
    }
    @PostMapping