From 04aef2643fa6d4e0b9eb14a470cd8e7b3e004051 Mon Sep 17 00:00:00 2001 From: Chewing_Bever Date: Sun, 12 Nov 2023 15:00:20 +0100 Subject: [PATCH] chore: update changelog & landerctl --- CHANGELOG.md | 5 ++++- landerctl | 6 ++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 993ae07..3795d4a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,9 +16,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * Rewrite of trie codebase * Introduced a custom data store using an in-memory trie as index and a custom binary on-disk format - * Support for lookup & insert + * Support for lookup, insert & a basic remove * Lander * Replaced old trie implementation with LSM store + * Add support for hosting arbitrary files + * Content type of file is set if provided when uploading file + * Support removing entries ## [0.1.0](https://git.rustybever.be/Chewing_Bever/lander/src/tag/0.1.0) diff --git a/landerctl b/landerctl index d586942..74a7ed3 100755 --- a/landerctl +++ b/landerctl @@ -47,4 +47,10 @@ elif [ "$1" = f ]; then -H "X-Lander-Content-Type: $(file --mime-type --brief $2)" \ --data-binary @"$2" \ "$URL/f/$3" + +elif [ "$1" = d ]; then + curl \ + -XDELETE \ + -H "X-Api-Key: $API_KEY" \ + "$URL/$2" fi