mirror of
https://github.com/avwo/whistle.git
synced 2026-10-22 09:34:35 +08:00
21 lines
393 B
JavaScript
21 lines
393 B
JavaScript
var path = require('path');
|
|
var ROOT = path.join(__dirname, 'htdocs');
|
|
|
|
function getHtmlFile(file) {
|
|
return path.join(ROOT, file || '');
|
|
}
|
|
|
|
exports.getHtmlFile = getHtmlFile;
|
|
|
|
function getImgFile(file) {
|
|
return path.join(ROOT, 'img', file || '');
|
|
}
|
|
|
|
exports.getImgFile = getImgFile;
|
|
|
|
function getJsFile(file) {
|
|
return path.join(ROOT, 'js', file || '');
|
|
}
|
|
|
|
exports.getJsFile = getJsFile;
|