14 lines
229 B
Go
14 lines
229 B
Go
|
package handler
|
||
|
|
||
|
import "git.icod.de/dalu/refdata/api/repo"
|
||
|
|
||
|
type Handler struct {
|
||
|
dataRepo *repo.DataRepository
|
||
|
}
|
||
|
|
||
|
func NewHandler(dataRepo *repo.DataRepository) *Handler {
|
||
|
h := new(Handler)
|
||
|
h.dataRepo = dataRepo
|
||
|
return h
|
||
|
}
|