diff options
Diffstat (limited to 'routes/routes.go')
-rw-r--r-- | routes/routes.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/routes/routes.go b/routes/routes.go new file mode 100644 index 0000000..835991a --- /dev/null +++ b/routes/routes.go @@ -0,0 +1,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, + } +} |