MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / IsRestfulPath

Function IsRestfulPath

common/regexp.go:118–120  ·  view source on GitHub ↗

IsRestfulPath 检查路径是否有restful参数

(path string)

Source from the content-addressed store, hash-verified

116
117// IsRestfulPath 检查路径是否有restful参数
118func IsRestfulPath(path string) bool {
119 return restfulPathMatchRegexp.MatchString(path)
120}
121
122// IsRestfulParam 检查是否为restful参数
123func IsRestfulParam(param string) bool {

Callers 1

ToRouterFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected