sureshdsk.dev

sureshdsk.dev

Series

Today I Learned (TIL)


Articles in this series

how to implement catch all route in fast api?

Oct 11, 20211 min read

Sometimes you would require to implement a catch all requests in your fastapi application. We can achieve it by using api_route method. Catch all route from fastapi import FastAPI, Request app = FastAPI() @app.route("/hello") async def hello(): ...

Check diff between two files in Python