Skip to content

Commit

Permalink
delete did controller
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedsmiai committed Sep 26, 2023
1 parent 2ad4a91 commit 9fe9517
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@ object WalletController {
), UserRole.AUTHORIZED
)
}
path("delete") {
delete("{id}", documented(document().operation {
it.summary("Delete DID").operationId("delete").addTagsItem("Wallet / DIDs")
}
.json<String>("200"), DidController::delete), UserRole.AUTHORIZED)
}
}
path("credentials") {
get(
Expand Down Expand Up @@ -370,6 +376,11 @@ object WalletController {
ctx.json(DidService.load(id))
}

fun deleteDid(ctx: Context) {
val id = ctx.pathParam("id")
ctx.json(DidService.deleteDid(id))
}

fun createDid(ctx: Context) {
val req = ctx.bodyAsClass<DidCreationRequest>()

Expand Down

0 comments on commit 9fe9517

Please sign in to comment.