Starlio-web/web/pages/index.go
2022-09-18 19:28:19 +03:00

22 lines
389 B
Go

package page
import (
"net/http"
"github.com/Redume/EveryNasa/functions"
)
func GalleryHandler(w http.ResponseWriter, r *http.Request) {
con := functions.Connected()
if con == false {
http.ServeFile(w, r, "web/src/errors/504.html")
return
}
if r.URL.Path != "/" {
http.ServeFile(w, r, "web/src/errors/404.html")
return
}
http.ServeFile(w, r, "web/src/gallery.html")
}