mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
32 lines
454 B
Go
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
|
|
}
|