Skip to content

Commit fd49455

Browse files
save file
1 parent 630638d commit fd49455

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

blog/25-07-24/http-server/ex/login-server.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313

1414
switch(path){
1515

16-
case 'login' : return login(req,res);
17-
case 'lougout' : return logout(req,res);
16+
case 'login.html' : return login(req,res);
17+
case 'logout.html' : return logout(req,res);
1818
case 'admin.html' : return admin(req,res);
1919

2020
}//switch
@@ -24,7 +24,6 @@
2424
switch(path){
2525

2626
case 'home.html' : txt=html.home; break;
27-
case 'login.html' : txt=html.login; break;
2827

2928
default : txt=html.notfound;
3029
code=404;
@@ -194,7 +193,7 @@
194193
h4,span{text-align:center;margin:0}
195194
input{font-size:16;padding:5px 10px}
196195
</style>
197-
<form action='login' method=post>
196+
<form action='login.html' method=post>
198197
<a href='home.html'>home</a>
199198
<h4>login</h4>
200199
<div>

0 commit comments

Comments
 (0)