chore(deps): remove dependencies from handler package
This commit is contained in:
@@ -6,7 +6,6 @@ import (
|
||||
"me-fit/types"
|
||||
"me-fit/utils"
|
||||
|
||||
"database/sql"
|
||||
"net/http"
|
||||
|
||||
"github.com/a-h/templ"
|
||||
@@ -17,14 +16,12 @@ type IndexHandler interface {
|
||||
}
|
||||
|
||||
type IndexHandlerImpl struct {
|
||||
db *sql.DB
|
||||
service service.AuthService
|
||||
serverSettings *types.ServerSettings
|
||||
}
|
||||
|
||||
func NewIndexHandler(db *sql.DB, service service.AuthService, serverSettings *types.ServerSettings) IndexHandler {
|
||||
func NewIndexHandler(service service.AuthService, serverSettings *types.ServerSettings) IndexHandler {
|
||||
return IndexHandlerImpl{
|
||||
db: db,
|
||||
service: service,
|
||||
serverSettings: serverSettings,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user