diff --git a/pages/index.html b/pages/index.html new file mode 100644 index 0000000..32862be --- /dev/null +++ b/pages/index.html @@ -0,0 +1,5 @@ + + +

Index

+

Hello

+ diff --git a/pages/login.html b/pages/login.html new file mode 100644 index 0000000..16279ef --- /dev/null +++ b/pages/login.html @@ -0,0 +1,5 @@ + + +

Login

+

Hello

+ diff --git a/pages/notfound.html b/pages/notfound.html index 1ac86b0..9d61e2f 100644 --- a/pages/notfound.html +++ b/pages/notfound.html @@ -1,4 +1,5 @@ - - -

asd

+ + +

404 Not found

+

The requested page cannot be found.

diff --git a/pages/register.html b/pages/register.html new file mode 100644 index 0000000..bb17637 --- /dev/null +++ b/pages/register.html @@ -0,0 +1,5 @@ + + +

Register

+

Hello

+ diff --git a/src/io/github/norbipeti/chat/server/page/Page.java b/src/io/github/norbipeti/chat/server/page/Page.java index b300ebf..12bb5b6 100644 --- a/src/io/github/norbipeti/chat/server/page/Page.java +++ b/src/io/github/norbipeti/chat/server/page/Page.java @@ -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