mirror of
https://github.com/cypress-io/cypress.git
synced 2026-02-05 06:40:56 -06:00
12 lines
307 B
TypeScript
12 lines
307 B
TypeScript
import type { Request, Response } from 'express'
|
|
import send from 'send'
|
|
import { getPathToDist } from '@packages/resolve-dist'
|
|
|
|
export const runner = {
|
|
handle (req: Request, res: Response) {
|
|
const pathToFile = getPathToDist('runner', req.params[0])
|
|
|
|
return send(req, pathToFile).pipe(res)
|
|
},
|
|
}
|