diff --git a/README.md b/README.md index a6332ea..b418d5c 100644 --- a/README.md +++ b/README.md @@ -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 ██ diff --git a/main.py b/main.py index 5bc9f57..dad094b 100644 --- a/main.py +++ b/main.py @@ -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 ██