From c52f9332a2860d4abe736a6054ae4112c7a89de5 Mon Sep 17 00:00:00 2001 From: Liam Date: Sat, 6 Apr 2024 18:10:10 +0100 Subject: [PATCH] add custom error page and update the home page --- src/main/resources/application.yml | 3 +++ src/main/resources/templates/error.html | 19 +++++++++++++++++++ src/main/resources/templates/index.html | 6 +++--- 3 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 src/main/resources/templates/error.html diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index f4b0bd3..0821e62 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -1,6 +1,9 @@ server: address: 0.0.0.0 port: 80 + error: + whitelabel: + enabled: false public-url: http://localhost diff --git a/src/main/resources/templates/error.html b/src/main/resources/templates/error.html new file mode 100644 index 0000000..b3cf914 --- /dev/null +++ b/src/main/resources/templates/error.html @@ -0,0 +1,19 @@ + + + + Minecraft Helper + + + + + + + + +

Oh, no!

+

You have encountered an error.

+ + Error Gif + + \ No newline at end of file diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html index acfaa0e..207c4b1 100644 --- a/src/main/resources/templates/index.html +++ b/src/main/resources/templates/index.html @@ -10,9 +10,9 @@ - -

Hello!

-

I don't feel like making this pretty.

+ +

Hello!!!

+

Wrapper for the Minecraft APIs to make them easier to use.

Player Data: Player Data