Skip to content

Commit e4e5df5

Browse files
authored
Express の章の再構成 (#787)
1 parent 12bbeda commit e4e5df5

39 files changed

+1803
-50
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import express from "express";
2+
import { readFileSync } from "node:fs";
3+
4+
const app = express();
5+
app.use((request, response) => {
6+
response.send(readFileSync("./static" + request.path, "utf-8"));
7+
});
8+
app.listen(3000);

0 commit comments

Comments
 (0)