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/resource/router.go

18 lines
328 B
Go

package resource
/**
* @name: router
* @author: veypi <i@veypi.com>
* @date: 2021-11-18 15:24
* @descriptionrouter
**/
import (
"github.com/veypi/OneBD"
"github.com/veypi/OneBD/rfc"
)
func Router(r OneBD.Router) {
r.Set("/", resP, rfc.MethodGet, rfc.MethodPost)
r.Set("/:id", resP, rfc.MethodDelete, rfc.MethodPatch)
}