ADD examples for deletion and add remark for cli output

This commit is contained in:
Caffeine Fueled 2025-10-16 01:59:10 +02:00
parent 9ff85a4e7e
commit 842cc1606d
Signed by: cf7
GPG key ID: CA295D643074C68C
2 changed files with 11 additions and 1 deletions

View file

@ -68,6 +68,11 @@ Invoke-RestMethod -Uri "https://linedump.com/{path}"
Invoke-RestMethod -Uri "https://linedump.com/{path}" -OutFile "filename.txt" # save to file
█ Delete:
curl -X POST "https://linedump.com/{path}?token={deletion_token}" # delete paste
██ Encryption Examples with curl ██

View file

@ -292,7 +292,7 @@ async def upload_text(request: Request, authorized: bool = Depends(validate_uplo
size_bytes=len(content))
# Return URL and deletion token
return f"{BASEURL}/{random_path}\nDelete: {BASEURL}/{random_path}?token={deletion_token}\n"
return f"{BASEURL}/{random_path}\nDelete with HTTP POST: {BASEURL}/{random_path}?token={deletion_token}\n"
except Exception as e:
log("ERROR", "upload_failed",
@ -472,6 +472,11 @@ Invoke-RestMethod -Uri "{BASEURL}/{{path}}" #
Invoke-RestMethod -Uri "{BASEURL}/{{path}}" -OutFile "filename.txt" # save to file
Delete:
curl -X POST "{BASEURL}/{{path}}?token={{deletion_token}}" # delete paste
Encryption Examples with curl