mirror of
https://github.com/miniflux/v2.git
synced 2025-08-01 17:38:37 +00:00
Replace daemon and scheduler package with service package
This commit is contained in:
parent
ca45765c46
commit
487852f07e
16 changed files with 287 additions and 275 deletions
4
ui/ui.go
4
ui/ui.go
|
@ -9,15 +9,15 @@ import (
|
|||
|
||||
"miniflux.app/config"
|
||||
"miniflux.app/reader/feed"
|
||||
"miniflux.app/scheduler"
|
||||
"miniflux.app/storage"
|
||||
"miniflux.app/template"
|
||||
"miniflux.app/worker"
|
||||
|
||||
"github.com/gorilla/mux"
|
||||
)
|
||||
|
||||
// Serve declares all routes for the user interface.
|
||||
func Serve(router *mux.Router, cfg *config.Config, store *storage.Storage, pool *scheduler.WorkerPool, feedHandler *feed.Handler) {
|
||||
func Serve(router *mux.Router, cfg *config.Config, store *storage.Storage, pool *worker.Pool, feedHandler *feed.Handler) {
|
||||
middleware := newMiddleware(router, cfg, store)
|
||||
handler := &handler{router, cfg, store, template.NewEngine(cfg, router), pool, feedHandler}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue