ADD examples for deletion and add remark for cli output
This commit is contained in:
parent
9ff85a4e7e
commit
842cc1606d
2 changed files with 11 additions and 1 deletions
|
|
@ -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 ██
|
||||
|
||||
|
|
|
|||
7
main.py
7
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 ██
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue