File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
blog/25-07-24/http-server/ex Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 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
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 ;
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>
You can’t perform that action at this time.
0 commit comments