Skip to content

Commit

Permalink
fixes formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyguerra committed Jan 20, 2024
1 parent 36001d4 commit 5655ba4
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions examples/static-files/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,11 @@ app.use('/static', express.static(path.join(__dirname, 'public')));
app.use(express.static(path.join(__dirname, 'public', 'css')));

if (!require.main) {
const server = app.listen();
app.close = () => server.close();
console.log(`Express started on port ${server.address().port}`);
console.log('try:');
console.log(' GET /hello.txt');
console.log(' GET /js/app.js');
console.log(' GET /css/style.css');
const server = app.listen();
app.close = () => server.close();
console.log(`Express started on port ${server.address().port}`);
console.log('try:');
console.log(' GET /hello.txt');
console.log(' GET /js/app.js');
console.log(' GET /css/style.css');
}

0 comments on commit 5655ba4

Please sign in to comment.