mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-08-23 21:45:03 -04:00
refactoring delete API, added external JSON-LD context
This commit is contained in:
parent
9e6e29bc93
commit
1d6cfb7f3b
8 changed files with 102 additions and 25 deletions
|
@ -671,9 +671,11 @@ $(function() {
|
|||
}
|
||||
if (comments[0].meta.burnafterreading)
|
||||
{
|
||||
// unfortunately many web servers don't support DELETE (and PUT) out of the box
|
||||
$.ajax({
|
||||
// type: 'DELETE', // unfortunately many web servers will not support DELETE and PUT by default
|
||||
url: this.scriptLocation() + '?pasteid=' + this.pasteID() + '&deletetoken=burnafterreading',
|
||||
type: 'POST',
|
||||
url: this.scriptLocation() + '?' + this.pasteID(),
|
||||
data: {deletetoken: 'burnafterreading'},
|
||||
dataType: 'json',
|
||||
headers: this.headers
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue