mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2025-10-31 01:58:11 +08:00
feature (static): upate a few static pages
- /about now shows a list of installed plugin - 404 page is more "funky"
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
_ "embed"
|
||||
"fmt"
|
||||
"github.com/gorilla/mux"
|
||||
. "github.com/mickael-kerjean/filestash/server/common"
|
||||
@ -15,6 +16,9 @@ import (
|
||||
"strconv"
|
||||
)
|
||||
|
||||
//go:embed plugin/index.go
|
||||
var EmbedPluginList []byte
|
||||
|
||||
func main() {
|
||||
app := App{}
|
||||
Init(&app)
|
||||
@ -125,6 +129,10 @@ func Init(a *App) {
|
||||
Log.Warning("No starter plugin available")
|
||||
return
|
||||
}
|
||||
|
||||
go func() {
|
||||
InitPluginList(EmbedPluginList)
|
||||
}()
|
||||
select {}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user