diff options
author | Florian Dold <florian@dold.me> | 2021-01-13 17:16:16 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-01-13 17:16:16 +0100 |
commit | 49469cea6776ba0cd0142794d2517284df45b5a2 (patch) | |
tree | 56a1fab9cc11d5a9cc85e29e868d4bf757b8dbbc /sandbox/src/main/kotlin/tech/libeufin | |
parent | bdd8291f73833389c50ca5e540881279222c5863 (diff) | |
download | libeufin-49469cea6776ba0cd0142794d2517284df45b5a2.tar.gz libeufin-49469cea6776ba0cd0142794d2517284df45b5a2.tar.bz2 libeufin-49469cea6776ba0cd0142794d2517284df45b5a2.zip |
remove deprecated endpoint
Diffstat (limited to 'sandbox/src/main/kotlin/tech/libeufin')
-rw-r--r-- | sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt index b030eeb0..71521699 100644 --- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt +++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt @@ -389,33 +389,6 @@ fun serverMain(dbName: String, port: Int) { } /** * Creates a new EBICS host. - * - * FIXME: This endpoint is deprecated. /hosts should be used instead. - */ - post("/admin/ebics/host") { - val req = call.receive<EbicsHostCreateRequest>() - val pairA = CryptoUtil.generateRsaKeyPair(2048) - val pairB = CryptoUtil.generateRsaKeyPair(2048) - val pairC = CryptoUtil.generateRsaKeyPair(2048) - transaction { - EbicsHostEntity.new { - this.ebicsVersion = req.ebicsVersion - this.hostId = req.hostID - this.authenticationPrivateKey = ExposedBlob(pairA.private.encoded) - this.encryptionPrivateKey = ExposedBlob(pairB.private.encoded) - this.signaturePrivateKey = ExposedBlob(pairC.private.encoded) - } - } - call.respondText( - "Host '${req.hostID}' created.", - ContentType.Text.Plain, - HttpStatusCode.OK - ) - return@post - } - - /** - * Creates a new EBICS host. */ post("/admin/ebics/hosts") { val req = call.receive<EbicsHostCreateRequest>() |