mirror of
https://gitee.com/xiangheng/x_admin.git
synced 2025-10-06 16:47:06 +08:00
16 lines
237 B
Go
16 lines
237 B
Go
package response
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
//NoRoute 无路由的响应
|
|
func NoRoute(c *gin.Context) {
|
|
Fail(c, Request404Error)
|
|
}
|
|
|
|
//NoMethod 无方法的响应
|
|
func NoMethod(c *gin.Context) {
|
|
Fail(c, Request405Error)
|
|
}
|