mirror of
https://github.com/m1k1o/neko.git
synced 2025-05-29 17:07:15 +02:00
use websocket authentication & refactor.
This commit is contained in:
parent
f136a31b03
commit
a18482b54e
9 changed files with 124 additions and 242 deletions
|
@ -3,7 +3,6 @@ package member
|
|||
import (
|
||||
"github.com/go-chi/chi"
|
||||
|
||||
"demodesk/neko/internal/api/utils"
|
||||
"demodesk/neko/internal/types"
|
||||
)
|
||||
|
||||
|
@ -21,10 +20,7 @@ func New(
|
|||
}
|
||||
}
|
||||
|
||||
func (h *MemberHandler) Router(
|
||||
usersOnly utils.HttpMiddleware,
|
||||
adminsOnly utils.HttpMiddleware,
|
||||
) *chi.Mux {
|
||||
func (h *MemberHandler) Router() *chi.Mux {
|
||||
r := chi.NewRouter()
|
||||
|
||||
return r
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue