whistle
Version:
HTTP, HTTPS, Websocket debugging proxy
32 lines (22 loc) • 591 B
JavaScript
var path = require('path');
var ROOT = path.join(__dirname, 'htdocs');
function getFile(file) {
return path.join(ROOT, file || '');
}
exports.getFile = getFile;
function getJsFile(file) {
return path.join(ROOT, 'js', file || '');
}
exports.getJsFile = getJsFile;
function getHtmlFile(file) {
return path.join(ROOT, file || '');
}
exports.getHtmlFile = getHtmlFile;
function getImgFile(file) {
return path.join(ROOT, 'img', file || '');
}
exports.getImgFile = getImgFile;
function getCssFile(file) {
return path.join(ROOT, 'css', file || '');
}
exports.getCssFile = getCssFile;