aboutsummaryrefslogtreecommitdiff
path: root/routes/routes.go
diff options
context:
space:
mode:
Diffstat (limited to 'routes/routes.go')
-rw-r--r--routes/routes.go17
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,
+ }
+}