[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: facade-deletion API
From: |
gnunet |
Subject: |
[libeufin] branch master updated: facade-deletion API |
Date: |
Tue, 18 May 2021 17:16:55 +0200 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository libeufin.
The following commit(s) were added to refs/heads/master by this push:
new c7670e3 facade-deletion API
c7670e3 is described below
commit c7670e38e8c79ff7e8df604949069fb04c43d7e6
Author: MS <ms@taler.net>
AuthorDate: Tue May 18 17:16:52 2021 +0200
facade-deletion API
---
.../main/kotlin/tech/libeufin/nexus/server/NexusServer.kt | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt
b/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt
index 37ef78b..465ec45 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt
@@ -901,6 +901,19 @@ fun serverMain(dbName: String, host: String, port: Int) {
return@get
}
+ delete("/facades/{fcid}") {
+ requireSuperuser(call.request)
+ val fcid = ensureNonNull(call.parameters["fcid"])
+ transaction {
+ val f = FacadeEntity.findByName(fcid) ?: throw NexusError(
+ HttpStatusCode.NotFound, "Facade $fcid does not exist"
+ )
+ f.delete()
+ }
+ call.respond({})
+ return@delete
+ }
+
post("/facades") {
requireSuperuser(call.request)
val body = call.receive<FacadeInfo>()
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libeufin] branch master updated: facade-deletion API,
gnunet <=