mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
fix(route) buildIndex: getIndexPath
This commit is contained in:
parent
dce3efe71b
commit
172b2f9ea2
1 changed files with 1 additions and 1 deletions
|
|
@ -157,7 +157,7 @@ function route(request, response, callback) {
|
|||
}
|
||||
|
||||
function buildIndex(json, callback) {
|
||||
fs.readFile(getIndexPath(), 'utf8', (error, template) => {
|
||||
fs.readFile(getIndexPath(isDev), 'utf8', (error, template) => {
|
||||
if (error)
|
||||
return callback(error);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue