Skip to content

Commit

Permalink
delete did controller (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedsmiai authored Sep 26, 2023
2 parents 2ad4a91 + 9fe9517 commit 4addc85
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 4addc85

Please sign in to comment.