(dir string)
| 45 | server.AddSystemPlugin(new(Frontend)) |
| 46 | } |
| 47 | func getFileSystem(dir string) http.FileSystem { |
| 48 | fDir, err := fs.Sub(dist, path.Join("dist", dir)) |
| 49 | if err != nil { |
| 50 | panic(err) |
| 51 | } |
| 52 | return http.FS(fDir) |
| 53 | } |
| 54 | |
| 55 | type Frontend struct { |
| 56 | } |