import {lookup} from 'mime-types' export const getMime = (context: any): any => async () => lookup(context.path) //TODO: Check the unknown mime type.