mirror of
https://github.com/Starlio-app/Starlio-web.git
synced 2024-12-27 10:43:46 +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")
|
|
}
|