I am trying to serve 404.html page using fastAPI in case a user goes to the wrong route. How am i supposed to do that

后端 未结 0 1006
情深已故
情深已故 2021-02-18 17:25

i want to render the index.html file otherwise raise an 404 error page not found

from fastapi import FastAPI, Request, HTTP         


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