We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 630638d commit fd49455Copy full SHA for fd49455
1 file changed
blog/25-07-24/http-server/ex/login-server.js
@@ -13,8 +13,8 @@
13
14
switch(path){
15
16
- case 'login' : return login(req,res);
17
- case 'lougout' : return logout(req,res);
+ case 'login.html' : return login(req,res);
+ case 'logout.html' : return logout(req,res);
18
case 'admin.html' : return admin(req,res);
19
20
}//switch
@@ -24,7 +24,6 @@
24
25
26
case 'home.html' : txt=html.home; break;
27
- case 'login.html' : txt=html.login; break;
28
29
default : txt=html.notfound;
30
code=404;
@@ -194,7 +193,7 @@
194
193
h4,span{text-align:center;margin:0}
195
input{font-size:16;padding:5px 10px}
196
</style>
197
- <form action='login' method=post>
+ <form action='login.html' method=post>
198
<a href='home.html'>home</a>
199
<h4>login</h4>
200
<div>
0 commit comments