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> -->
|
<!DOCTYPE html>
|
||||||
<html xmlns="http://www.w3.org/TR/html4/">
|
<html>
|
||||||
<h1>asd</h1>
|
<h1>404 Not found</h1>
|
||||||
|
<p>The requested page cannot be found.</p>
|
||||||
</html>
|
</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() {
|
public final String GetHTMLPath() {
|
||||||
if (GetName().length() == 0)
|
if (GetName().length() == 0)
|
||||||
return "pages/index.html";
|
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
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue