Skip to content

Commit 6a52bc9

Browse files
authored
テンプレートとして用いている index.html を template.html に改名した (#780)
1 parent 7b15244 commit 6a52bc9

File tree

4 files changed

+2
-2
lines changed

4 files changed

+2
-2
lines changed

docs/3-web-servers/07-get-post/_samples/forum/main.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ app.use(express.urlencoded({ extended: true }));
66

77
const messages = [];
88

9-
const template = readFileSync("./index.html", "utf-8");
9+
const template = readFileSync("./template.html", "utf-8");
1010
app.get("/", (request, response) => {
1111
const html = template.replace(
1212
"<!-- messages -->",

docs/3-web-servers/07-get-post/_samples/forum/index.html renamed to docs/3-web-servers/07-get-post/_samples/forum/template.html

File renamed without changes.

docs/3-web-servers/08-database/_samples/forum/main.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const app = express();
66
app.use(express.urlencoded({ extended: true }));
77
const client = new PrismaClient();
88

9-
const template = readFileSync("./index.html", "utf-8");
9+
const template = readFileSync("./template.html", "utf-8");
1010
app.get("/", async (request, response) => {
1111
const posts = await client.post.findMany();
1212
const html = template.replace(

docs/3-web-servers/08-database/_samples/forum/index.html renamed to docs/3-web-servers/08-database/_samples/forum/template.html

File renamed without changes.

0 commit comments

Comments
 (0)