mirror of
https://github.com/saltbo/zpan.git
synced 2026-08-30 17:50:07 +08:00
feat(downloads): add remote download workers
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
import { mkdir, writeFile } from 'node:fs/promises'
|
||||
import { dirname, resolve } from 'node:path'
|
||||
import { downloaderOpenAPIDocument } from '../server/openapi/downloader'
|
||||
|
||||
const output = resolve('docs/openapi/downloader.json')
|
||||
await mkdir(dirname(output), { recursive: true })
|
||||
await writeFile(output, `${JSON.stringify(downloaderOpenAPIDocument(), null, 2)}\n`)
|
||||
Reference in New Issue
Block a user