How to redirect/render to 404 if the “_id” is wrong/misspelled in /blogs/:blogId

前端 未结 0 1399
臣服心动
臣服心动 2020-11-29 13:38

I want to redirect users to "404.ejs" if the post id is entered wrong/mispelled in blogs/:blogId route. How can I accomplish it in below code.

app.g         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题