mirror of
https://github.com/nxshock/simplefileshare.git
synced 2025-07-02 00:13:36 +05:00
Move site files to separate embed.FS
This commit is contained in:
parent
15cd01725b
commit
5d632da771
7 changed files with 217 additions and 207 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue