diff options
Diffstat (limited to 'routes')
-rw-r--r-- | routes/routes.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/routes/routes.go b/routes/routes.go index 79264c5..31384a7 100644 --- a/routes/routes.go +++ b/routes/routes.go @@ -10,15 +10,15 @@ import ( func HandleRequests() { models := db.EntryModel{DB: db.DB} - worker := worker.Worker{} - - worker.StartWorker(models) + worker := worker.NewWorkder() env := &controller.Env{ Entries: models, Worker: worker, } + env.StartScheduler() + r := gin.Default() r.LoadHTMLGlob("templates/*") r.Static("/assets", "./assets") |