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.
OneAuth/api/auth/router.go

12 lines
221 B
Go

package auth
import (
"github.com/veypi/OneBD"
"github.com/veypi/OneBD/rfc"
)
func Router(r OneBD.Router) {
r.Set("/", authP, rfc.MethodGet, rfc.MethodPost)
r.Set("/:id", authP, rfc.MethodPatch, rfc.MethodDelete)
}