blob: 835991a3503ab3d7a25f5b58606b7894b1721587 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
package routes
import (
"gitrepo.ru/neonxp/gorum/repository"
)
type Router struct {
userRepo *repository.User
nodeRepo *repository.Node
}
func NewRouter(userRepo *repository.User, nodeRepo *repository.Node) *Router {
return &Router{
userRepo: userRepo,
nodeRepo: nodeRepo,
}
}
|