fehlerbehebung

This commit is contained in:
xoy 2023-01-29 18:54:28 +01:00
parent bff9ce49e6
commit f1dd2b9b1e
1 changed files with 7 additions and 5 deletions

12
main.go
View File

@ -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)