first
This commit is contained in:
commit
f4be03ceba
1826 changed files with 830924 additions and 0 deletions
19
backend/cmd/server/frontend.go
Normal file
19
backend/cmd/server/frontend.go
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"embed"
|
||||
"io/fs"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
//go:embed all:embed
|
||||
//go:embed all:embed/_app
|
||||
var Files embed.FS
|
||||
|
||||
func FrontendFileSystem() http.FileSystem {
|
||||
return http.FS(Files)
|
||||
}
|
||||
|
||||
func FrontendFS() fs.FS {
|
||||
return Files
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue