add perm-delete bruno doc

This commit is contained in:
Ean Milligan
2026-04-10 16:20:27 -04:00
parent fa9938bda7
commit ea4ba78c41
2 changed files with 24 additions and 1 deletions

View File

@@ -0,0 +1,23 @@
meta {
name: perm delete plan
type: http
seq: 10
}
delete {
url: http://localhost:14014/api/perm-delete/[planId]
body: json
auth: inherit
}
body:json {
{
"name": "test",
"pin": "1234"
}
}
settings {
encodeUrl: true
timeout: 0
}

2
mod.ts
View File

@@ -300,7 +300,7 @@ Deno.serve({ port: config.api.port }, async (req) => {
failed = true; failed = true;
}); });
if (failed) return genericResponse(STATUS_CODE.InternalServerError, "Couldn't update DB."); if (failed) return genericResponse(STATUS_CODE.InternalServerError, "Couldn't update DB.");
return genericResponse(STATUS_CODE.OK, 'Plan deleted.'); return genericResponse(STATUS_CODE.OK, 'Plan permanently deleted.');
} }
break; break;
} }