Added better archive functionalty (backend side atm)
Code refactoring
This commit is contained in:
16
server/archive/container.go
Normal file
16
server/archive/container.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package archive
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
|
||||
"github.com/marcopeocchi/yt-dlp-web-ui/v3/server/archive/domain"
|
||||
)
|
||||
|
||||
func Container(db *sql.DB) (domain.RestHandler, domain.Service) {
|
||||
var (
|
||||
r = provideRepository(db)
|
||||
s = provideService(r)
|
||||
h = provideHandler(s)
|
||||
)
|
||||
return h, s
|
||||
}
|
||||
Reference in New Issue
Block a user