Added better archive functionalty (backend side atm)
Code refactoring
This commit is contained in:
18
server/archive/archive.go
Normal file
18
server/archive/archive.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package archive
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
|
||||
"github.com/go-chi/chi/v5"
|
||||
"github.com/marcopeocchi/yt-dlp-web-ui/v3/server/archive/domain"
|
||||
)
|
||||
|
||||
// alias type
|
||||
// TODO: remove after refactoring
|
||||
type Service = domain.Service
|
||||
type Entity = domain.ArchiveEntry
|
||||
|
||||
func ApplyRouter(db *sql.DB) func(chi.Router) {
|
||||
handler, _ := Container(db)
|
||||
return handler.ApplyRouter()
|
||||
}
|
||||
Reference in New Issue
Block a user