aboutsummaryrefslogblamecommitdiff
path: root/controllers/routes.go
blob: 6e2ab9be608ba218504e05d9420e3694c5863679 (plain) (tree)


















                                                                                                           
package controllers

import (
	"gitrepo.ru/neonxp/gorum/repository"
)

type Router struct {
	userRepo  *repository.User
	postRepo  *repository.Post
	topicRepo *repository.Topic
}

func NewRouter(userRepo *repository.User, nodeRepo *repository.Post, topicRepo *repository.Topic) *Router {
	return &Router{
		userRepo:  userRepo,
		postRepo:  nodeRepo,
		topicRepo: topicRepo,
	}
}