質問編集履歴
1
本文の位置入れ替え
test
CHANGED
File without changes
|
test
CHANGED
@@ -19,24 +19,6 @@
|
|
19
19
|
│ └index.html
|
20
20
|
|
21
21
|
└server.js
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
代替案として、
|
26
|
-
|
27
|
-
express.staticの使用を止め、直接ソースコードでhtmlを呼び出しています。
|
28
|
-
|
29
|
-
```
|
30
|
-
|
31
|
-
app.get('/', function(req, res, next){
|
32
|
-
|
33
|
-
res.sendFile(__dirname + '/public/index.html');
|
34
|
-
|
35
|
-
console.log("test");
|
36
|
-
|
37
|
-
});
|
38
|
-
|
39
|
-
```
|
40
22
|
|
41
23
|
|
42
24
|
|
@@ -102,6 +84,26 @@
|
|
102
84
|
|
103
85
|
|
104
86
|
|
87
|
+
### 追記
|
88
|
+
|
89
|
+
代替案として、
|
90
|
+
|
91
|
+
express.staticの使用を止め、直接ソースコードでhtmlを呼び出しています。
|
92
|
+
|
93
|
+
```
|
94
|
+
|
95
|
+
app.get('/', function(req, res, next){
|
96
|
+
|
97
|
+
res.sendFile(__dirname + '/public/index.html');
|
98
|
+
|
99
|
+
console.log("test");
|
100
|
+
|
101
|
+
});
|
102
|
+
|
103
|
+
```
|
104
|
+
|
105
|
+
|
106
|
+
|
105
107
|
### 補足情報
|
106
108
|
|
107
109
|
Express 4.16.3
|