UNPKG

@adonisjs/drive

Version:

A thin wrapper on top of Flydrive to work seamlessly with AdonisJS

8 lines (7 loc) 331 B
import type { HttpContext } from '@adonisjs/core/http'; import type { Disk } from '../index.js'; /** * Returns a file server function that can be registered as * a route to serve files from a specific disk instance. */ export declare function createFileServer(disk: Disk): ({ request, response }: HttpContext) => Promise<void>;