mirror of
https://github.com/marcopiovanello/yt-dlp-web-ui.git
synced 2026-07-25 06:54:30 +00:00
143cc28a97
* refactoring-1 introduced pipelines and abstracted download process.go in Downloader interface * migrated to boltdb from sqlite + session files * refactoring: config struct & pipelines * added js runtime for yt-dlp * updated dockerfile * added external js runtime, metadata scraping refactor * updated Dockerfile * fixed env propagation in docker * updated package name to v4 * updated readme and cd
22 lines
520 B
Go
22 lines
520 B
Go
package status
|
|
|
|
import (
|
|
"github.com/go-chi/chi/v5"
|
|
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal/kv"
|
|
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/status/repository"
|
|
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/status/rest"
|
|
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/status/service"
|
|
)
|
|
|
|
func ApplyRouter(mdb *kv.Store) func(chi.Router) {
|
|
var (
|
|
r = repository.New(mdb)
|
|
s = service.New(r, nil)
|
|
h = rest.New(s)
|
|
)
|
|
|
|
return func(r chi.Router) {
|
|
r.Get("/", h.Status())
|
|
}
|
|
}
|