Skip to content

Commit

Permalink
Merge pull request #678 from magieno/update-cli-to-use-data-mapper
Browse files Browse the repository at this point in the history
- Fix index.
  • Loading branch information
etiennenoel authored Mar 9, 2024
2 parents caa5d65 + afc6fe3 commit f3a0bbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/http/src/servers/file.http-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export class FileHttpServer {
}

// if is a directory search for index file matching the extension
if (fs.statSync(pathname).isDirectory()) pathname += '/index' + ext;
if (fs.statSync(pathname).isDirectory()) pathname += 'index' + ext;

// read file from file system
fs.readFile(pathname, function(err, data){
Expand Down

0 comments on commit f3a0bbf

Please sign in to comment.