mirror of
https://github.com/Starlio-app/Starlio-web.git
synced 2024-11-25 09:56:22 +03:00
22 lines
389 B
Go
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")
|
|
}
|