package created
This commit is contained in:
parent
79d9ae5ab5
commit
d5610fbb30
4 changed files with 122 additions and 0 deletions
18
internal/httpDelivery/handler.go
Normal file
18
internal/httpDelivery/handler.go
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
package httpDelivery
|
||||
|
||||
import "imageStorage/internal/interfaces"
|
||||
|
||||
type Handler struct {
|
||||
controller *controller
|
||||
service *service
|
||||
}
|
||||
|
||||
func NewHandler(utils interfaces.Utils) *Handler {
|
||||
s := newService(utils)
|
||||
c := newController(s)
|
||||
|
||||
return &Handler{
|
||||
controller: c,
|
||||
service: s,
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue