質問編集履歴
2
短縮化
test
CHANGED
File without changes
|
test
CHANGED
@@ -46,15 +46,17 @@
|
|
46
46
|
|
47
47
|
if (url_parts.query.id !== undefined) {
|
48
48
|
|
49
|
-
if (auth(url_parts.query.id)) {
|
50
49
|
|
51
|
-
filePath = '/home.html';
|
52
50
|
|
53
|
-
|
51
|
+
if (auth(url_parts.query.id)) {
|
54
52
|
|
55
|
-
|
53
|
+
filePath = '/home.html';
|
56
54
|
|
55
|
+
} else {
|
56
|
+
|
57
|
+
filePath = '/error.html';
|
58
|
+
|
57
|
-
|
59
|
+
}
|
58
60
|
|
59
61
|
}
|
60
62
|
|
1
短縮化
test
CHANGED
File without changes
|
test
CHANGED
@@ -57,14 +57,6 @@
|
|
57
57
|
}
|
58
58
|
|
59
59
|
}
|
60
|
-
|
61
|
-
} else if (req.url == '/home') {
|
62
|
-
|
63
|
-
filePath = '/home.html';
|
64
|
-
|
65
|
-
} else if (req.url == '/error') {
|
66
|
-
|
67
|
-
filePath = '/error.html';
|
68
60
|
|
69
61
|
} else {
|
70
62
|
|