You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/api.md
+2-7Lines changed: 2 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,8 +18,6 @@ If the paste is uploaded with a `lang` parameter, an `X-PB-Highlight-Language` h
18
18
19
19
-`?a=`: optional. Set `Content-Disposition` to `attachment` if present.
20
20
21
-
-`?lang=<lang>`: optional. Returns a web page with syntax highlight powered by prism.js.
22
-
23
21
-`?mime=<mime>`: optional. Specify the mime-type, suppressing the effect of `<ext>`. No effect if `lang` is specified (in which case the mime-type is always `text/html`).
Return the web page that will decrypt the paste of name `<name>` in browser.
73
+
Return the web page that will display the content of the paste of name `<name>`. If the paste is encrypted, a key can be appended to the URL to decrypt the paste of name `<name>` in browser.
78
74
79
75
If error occurs, the worker returns status code different from `302`:
80
76
@@ -84,7 +80,7 @@ If error occurs, the worker returns status code different from `302`:
84
80
Usage example:
85
81
86
82
```shell
87
-
$ firefox https://shz.al/e/i-p-
83
+
$ firefox https://shz.al/d/i-p-
88
84
```
89
85
90
86
## GET `/m/<name>`
@@ -210,7 +206,6 @@ Upload your paste. It accept parameters in form-data:
210
206
Explanation of the fields:
211
207
212
208
-`url`: String. The URL to fetch the paste. When using a customized name, it looks like `https//shz.al/~myname`.
213
-
-`suggestedUrl`: Optional string. The URL that may carry filename or URL redirection.
214
209
-`manageUrl`: String. The URL to update and delete the paste, which is `url` suffixed by `~` and the password.
215
210
-`expirationSeconds`: String. The expiration seconds.
216
211
-`expireAt`: String. An ISO String representing when the paste will expire.
0 commit comments