Skip to content

Commit ef518d1

Browse files
kseomajecty
authored andcommitted
Use HTTP DELETE method for key removal endpoint
1 parent e877a70 commit ef518d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routes/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export function createRouter(context: Context) {
2626
});
2727
});
2828

29-
router.post("/keys/:key/remove", async (req, res) => {
29+
router.delete("/keys/:key", async (req, res) => {
3030
const { key } = req.params;
3131
const keyType: KeyType = req.body.keyType;
3232
const result = await context.cckey[keyType].deleteKey({ publicKey: key });

0 commit comments

Comments
 (0)