This commit is contained in:
oneao committed 2025-11-11 22:31:33 +08:00
1 parent 7971c527af
commit b8a6b15355
27 files changed
+480 -399

No files matched your search

@@ -194,8 +194,9 @@ func (r *Router) handle(method, path string, handler HandlerFunc) *Router {
func (r *Router) Handler(ctx *fasthttp.RequestCtx) {
method := string(ctx.Method())
root := r.roots[method]
if root == nil {
ctx.Error("404 Not Found", fasthttp.StatusNotFound)
ctx.Error("未找到该页面", fasthttp.StatusNotFound)
return
}