diff --git a/.bruno/Plan Endpoints/perm delete plan.bru b/.bruno/Plan Endpoints/perm delete plan.bru new file mode 100644 index 0000000..8995aad --- /dev/null +++ b/.bruno/Plan Endpoints/perm delete plan.bru @@ -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 +} diff --git a/mod.ts b/mod.ts index 450f94e..9c4339a 100644 --- a/mod.ts +++ b/mod.ts @@ -300,7 +300,7 @@ Deno.serve({ port: config.api.port }, async (req) => { failed = true; }); 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; }