mirror of
https://github.com/rikkaneko/paste.git
synced 2025-08-07 06:25:33 +01:00
Add view paste detail support (web)
Add json response on settings (paste) Signed-off-by: Joe Ma <rikkaneko23@gmail.com>
This commit is contained in:
parent
0f89088486
commit
32b4da79a6
3 changed files with 33 additions and 10 deletions
|
@ -278,7 +278,8 @@ export default {
|
|||
switch (method) {
|
||||
case 'GET': {
|
||||
const need_qrcode = searchParams.get('qr') === '1' || headers.get('x-qr') === '1';
|
||||
return await get_paste_info(uuid, descriptor, env, is_browser, need_qrcode);
|
||||
const reply_json = searchParams.get('json') === '1' || headers.get('x-json') === '1';
|
||||
return await get_paste_info(uuid, descriptor, env, is_browser, need_qrcode, reply_json);
|
||||
}
|
||||
|
||||
case 'POST': {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue