mirror of
https://github.com/cypress-io/cypress.git
synced 2026-05-06 23:10:22 -05:00
15 lines
301 B
JavaScript
15 lines
301 B
JavaScript
const send = require('send')
|
|
/**
|
|
* @type {import('@packages/resolve-dist')}
|
|
*/
|
|
const { getPathToDist } = require('@packages/resolve-dist')
|
|
|
|
module.exports = {
|
|
handle (req, res) {
|
|
const pathToFile = getPathToDist('static', req.params[0])
|
|
|
|
return send(req, pathToFile)
|
|
.pipe(res)
|
|
},
|
|
}
|