fehlerbehebung
This commit is contained in:
parent
bff9ce49e6
commit
f1dd2b9b1e
12
main.go
12
main.go
|
@ -26,11 +26,7 @@ func main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func handler() {
|
func handler() {
|
||||||
//pages
|
//reihenfolge ist wichtig!
|
||||||
logger("----------------HANDLE PAGES----------------")
|
|
||||||
httpHandleFunc("", "./web/pages/home.html", "text/html")
|
|
||||||
handleFilesInFolder("", "./web/pages/", true)
|
|
||||||
logger("----------------HANDLE END----------------")
|
|
||||||
|
|
||||||
//admin pages
|
//admin pages
|
||||||
logger("----------------HANDLE ADMIN LOGIN----------------")
|
logger("----------------HANDLE ADMIN LOGIN----------------")
|
||||||
|
@ -46,6 +42,12 @@ func handler() {
|
||||||
//events
|
//events
|
||||||
handleEvents()
|
handleEvents()
|
||||||
|
|
||||||
|
//pages
|
||||||
|
logger("----------------HANDLE PAGES----------------")
|
||||||
|
httpHandleFunc("", "./web/pages/home.html", "text/html")
|
||||||
|
handleFilesInFolder("", "./web/pages/", true)
|
||||||
|
logger("----------------HANDLE END----------------")
|
||||||
|
|
||||||
//styles
|
//styles
|
||||||
logger("----------------HANDLE STYLES----------------")
|
logger("----------------HANDLE STYLES----------------")
|
||||||
handleFilesInFolder("style/", "./web/styles/", false)
|
handleFilesInFolder("style/", "./web/styles/", false)
|
||||||
|
|
Loading…
Reference in New Issue