chore(dev): dynamically load templates during dev
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-02-25 14:54:50 -05:00
parent 75ed394f8d
commit a69b7452ce
5 changed files with 102 additions and 87 deletions

View File

@@ -1,7 +1,7 @@
package server
import (
"embed"
"io/fs"
"net/http"
"sync"
"time"
@@ -21,8 +21,7 @@ type server struct {
}
// Create new server
func New(assets *embed.FS) *server {
c := config.Load()
func New(c *config.Config, assets fs.FS) *server {
db := database.NewMgr(c)
api := api.NewApi(db, c, assets)