Use request forwarding for large paste

Signed-off-by: Joe Ma <rikkaneko23@gmail.com>
This commit is contained in:
Joe Ma 2024-02-14 03:17:04 +08:00
parent 63578bcf9d
commit 1fb3076115
No known key found for this signature in database
GPG key ID: 7A0ECF5F5EDC587F
4 changed files with 41 additions and 25 deletions

3
src/types.d.ts vendored
View file

@ -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;
}