fix router bug: when the request is PUT or DELETE, router can't find the actual route and will throw 404 page to user