mirror of
https://github.com/rikkaneko/paste.git
synced 2025-08-06 22:15:34 +01:00
Use request forwarding for large paste
Signed-off-by: Joe Ma <rikkaneko23@gmail.com>
This commit is contained in:
parent
63578bcf9d
commit
1fb3076115
4 changed files with 41 additions and 25 deletions
3
src/types.d.ts
vendored
3
src/types.d.ts
vendored
|
@ -6,7 +6,7 @@ export type ERequest = {
|
|||
// match_etag?: string;
|
||||
} & IRequest;
|
||||
|
||||
export type PASTE_TYPES = 'paste' | 'link' | 'large_paste';
|
||||
export type PASTE_TYPES = 'paste' | 'text' | 'link' | 'large_paste';
|
||||
|
||||
export interface PasteIndexEntry {
|
||||
title?: string;
|
||||
|
@ -20,7 +20,6 @@ export interface PasteIndexEntry {
|
|||
type: PASTE_TYPES;
|
||||
// Only apply when large_paste
|
||||
upload_completed?: boolean;
|
||||
sha256_hash?: string;
|
||||
cached_presigned_url?: string;
|
||||
cached_presigned_url_expiration?: number;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue