Fixed pages not showing up and added pages
This commit is contained in:
parent
276601c18d
commit
b948843675
5 changed files with 20 additions and 4 deletions
5
pages/index.html
Normal file
5
pages/index.html
Normal file
|
@ -0,0 +1,5 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<h1>Index</h1>
|
||||
<p>Hello</p>
|
||||
</html>
|
5
pages/login.html
Normal file
5
pages/login.html
Normal file
|
@ -0,0 +1,5 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<h1>Login</h1>
|
||||
<p>Hello</p>
|
||||
</html>
|
|
@ -1,4 +1,5 @@
|
|||
<!-- <!DOCTYPE html> -->
|
||||
<html xmlns="http://www.w3.org/TR/html4/">
|
||||
<h1>asd</h1>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<h1>404 Not found</h1>
|
||||
<p>The requested page cannot be found.</p>
|
||||
</html>
|
||||
|
|
5
pages/register.html
Normal file
5
pages/register.html
Normal file
|
@ -0,0 +1,5 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<h1>Register</h1>
|
||||
<p>Hello</p>
|
||||
</html>
|
|
@ -17,7 +17,7 @@ public abstract class Page implements HttpHandler {
|
|||
public final String GetHTMLPath() {
|
||||
if (GetName().length() == 0)
|
||||
return "pages/index.html";
|
||||
return new StringBuilder("pages/").append(GetName().length() == 0).append(".html").toString();
|
||||
return new StringBuilder("pages/").append(GetName()).append(".html").toString();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue