From f1dd2b9b1e71729e7c69f246e3d36b5084df562c Mon Sep 17 00:00:00 2001 From: xoy Date: Sun, 29 Jan 2023 18:54:28 +0100 Subject: [PATCH] fehlerbehebung --- main.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/main.go b/main.go index 7047211..11545f7 100644 --- a/main.go +++ b/main.go @@ -26,11 +26,7 @@ func main() { } func handler() { - //pages - logger("----------------HANDLE PAGES----------------") - httpHandleFunc("", "./web/pages/home.html", "text/html") - handleFilesInFolder("", "./web/pages/", true) - logger("----------------HANDLE END----------------") + //reihenfolge ist wichtig! //admin pages logger("----------------HANDLE ADMIN LOGIN----------------") @@ -46,6 +42,12 @@ func handler() { //events handleEvents() + //pages + logger("----------------HANDLE PAGES----------------") + httpHandleFunc("", "./web/pages/home.html", "text/html") + handleFilesInFolder("", "./web/pages/", true) + logger("----------------HANDLE END----------------") + //styles logger("----------------HANDLE STYLES----------------") handleFilesInFolder("style/", "./web/styles/", false)