neko/internal/api/member/handler.go
2020-11-01 16:54:06 +01:00

32 lines
454 B
Go

package member
import (
"github.com/go-chi/chi"
"demodesk/neko/internal/api/utils"
"demodesk/neko/internal/types"
)
type MemberHandler struct {
sessions types.SessionManager
}
func New(
sessions types.SessionManager,
) *MemberHandler {
// Init
return &MemberHandler{
sessions: sessions,
}
}
func (h *MemberHandler) Router(
usersOnly utils.HttpMiddleware,
adminsOnly utils.HttpMiddleware,
) *chi.Mux {
r := chi.NewRouter()
return r
}