package service

import (
	"bsm/full/all/internal/config"
	"bsm/full/all/internal/impl"
	"bsm/full/all/internal/server"
	moduleService "bsm/full/module/base/mgt/service"
)

func exposeMgt(srv *server.Server) error {
	return moduleService.Expose(moduleService.ExposeOptions{
		Dependencies: moduleService.Dependencies{Redis: impl.RedisService, Etcd: impl.EtcdService, DB: impl.DBService, Cache: impl.MemoryService},
		Engine:       srv.HTTP,
		Config:       config.Spec.Mgt,
	})
}
