Update app.js
Browse files
app.js
CHANGED
|
@@ -4,7 +4,7 @@ const fs = require('fs');
|
|
| 4 |
const app = express();
|
| 5 |
const PORT = 3000;
|
| 6 |
|
| 7 |
-
app.use(express.static(path.join(__dirname, 'public')));
|
| 8 |
|
| 9 |
function getFiles(directoryPath) {
|
| 10 |
let results = [];
|
|
|
|
| 4 |
const app = express();
|
| 5 |
const PORT = 3000;
|
| 6 |
|
| 7 |
+
app.use('/', express.static(path.join(__dirname, 'public')));
|
| 8 |
|
| 9 |
function getFiles(directoryPath) {
|
| 10 |
let results = [];
|