Move site files to separate embed.FS

This commit is contained in:
nxshock 2021-09-24 23:35:55 +05:00
parent 15cd01725b
commit 5d632da771
7 changed files with 217 additions and 207 deletions

View file

@ -13,7 +13,7 @@ import (
func HandleRoot(w http.ResponseWriter, r *http.Request) {
if r.RequestURI != "/" {
http.Error(w, "", http.StatusNotFound)
http.FileServer(http.FS(stripSiteFS)).ServeHTTP(w, r)
return
}