Skip to content

Commit

Permalink
Express の章の再構成 (#787)
Browse files Browse the repository at this point in the history
  • Loading branch information
chelproc authored Jun 3, 2024
1 parent 12bbeda commit e4e5df5
Show file tree
Hide file tree
Showing 39 changed files with 1,803 additions and 50 deletions.
1 change: 1 addition & 0 deletions docs/3-web-servers/05-server/_samples/app-use/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
8 changes: 8 additions & 0 deletions docs/3-web-servers/05-server/_samples/app-use/main.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import express from "express";
import { readFileSync } from "node:fs";

const app = express();
app.use((request, response) => {
response.send(readFileSync("./static" + request.path, "utf-8"));
});
app.listen(3000);
Loading

0 comments on commit e4e5df5

Please sign in to comment.