neko/internal/api/member/handler.go

28 lines
350 B
Go
Raw Normal View History

2020-10-31 06:16:21 +13:00
package member
import (
"github.com/go-chi/chi"
"demodesk/neko/internal/types"
)
type MemberHandler struct {
2020-11-02 04:54:06 +13:00
sessions types.SessionManager
2020-10-31 06:16:21 +13:00
}
func New(
sessions types.SessionManager,
) *MemberHandler {
// Init
return &MemberHandler{
2020-11-02 04:54:06 +13:00
sessions: sessions,
2020-10-31 06:16:21 +13:00
}
}
func (h *MemberHandler) Router() *chi.Mux {
2020-10-31 06:16:21 +13:00
r := chi.NewRouter()
return r
}