Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/v1' into v1
Browse files Browse the repository at this point in the history
  • Loading branch information
Davide bonomini committed Oct 8, 2024
2 parents 2f30207 + 3b64836 commit aac45d1
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions evo.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,14 @@ func Run() {
for _, item := range statics {
app.Static(item[0], item[1])
}

for _, item := range onReady {
item()
}
for prefix, _ := range viewList {
applyViewFunction(prefix)
}

if Any != nil {
app.Use(func(ctx *fiber.Ctx) error {
r := Upgrade(ctx)
Expand All @@ -152,12 +160,6 @@ func Run() {
})
}

for _, item := range onReady {
item()
}
for prefix, _ := range viewList {
applyViewFunction(prefix)
}
var err error
if config.Server.HTTPS {
cer, err := tls.LoadX509KeyPair(GuessPath(config.Server.Cert), GuessPath(config.Server.Key))
Expand Down

0 comments on commit aac45d1

Please sign in to comment.