mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-06 00:15:11 +01:00
fix (main): reorder boot sequence
the issue is from plugins we could not generate a endpoint in the Onload section, leading to some weird piece of code
This commit is contained in:
parent
359a6c05d1
commit
d69e75cbb6
1 changed files with 3 additions and 3 deletions
|
|
@ -31,12 +31,12 @@ func Run(router *mux.Router, app App) {
|
|||
if len(Hooks.Get.Starter()) == 0 {
|
||||
check(ErrNotFound, "Missing starter plugin. err=%s")
|
||||
}
|
||||
for _, obj := range Hooks.Get.HttpEndpoint() {
|
||||
obj(router, &app)
|
||||
}
|
||||
for _, fn := range Hooks.Get.Onload() {
|
||||
fn()
|
||||
}
|
||||
for _, obj := range Hooks.Get.HttpEndpoint() {
|
||||
obj(router, &app)
|
||||
}
|
||||
server.Build(router, app)
|
||||
server.PluginRoutes(router)
|
||||
server.CatchAll(router, app)
|
||||
|
|
|
|||
Loading…
Reference in a new issue