mirror of https://github.com/veypi/OneAuth.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
341 B
Go
14 lines
341 B
Go
package role
|
|
|
|
import (
|
|
"github.com/veypi/OneBD"
|
|
"github.com/veypi/OneBD/rfc"
|
|
)
|
|
|
|
func Router(r OneBD.Router) {
|
|
r.Set("/", roleP, rfc.MethodGet, rfc.MethodPost)
|
|
r.Set("/:id", roleP, rfc.MethodGet, rfc.MethodDelete, rfc.MethodPatch)
|
|
r.Set("/:id/user/", ruP, rfc.MethodGet)
|
|
r.Set("/:id/user/:uid", ruP, rfc.MethodPost, rfc.MethodDelete)
|
|
}
|