mirror of
https://github.com/lifegpc/eh-downloader.git
synced 2026-07-08 01:31:00 +08:00
Add /api/filemeta and /api/filemeta/[token]
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
export async function get_string(value: FormDataEntryValue | null) {
|
||||
if (value === null) return null;
|
||||
return typeof value === "string" ? value : await value.text();
|
||||
}
|
||||
|
||||
export async function parse_bool<T extends boolean | null>(
|
||||
value: FormDataEntryValue | null,
|
||||
def: T,
|
||||
|
||||
Reference in New Issue
Block a user