Let's say I have 2 routes pointing to the same function
from fastapi import FastApi
app = FastApi()
@app.get('/api/)
@app.get('/api/test')
def main_route():
...
Both routes will call main_route function, but I want to know which route was used. Query parameters shouldn't be used in there. I was thinking of using request object but I want to know if there is a simpler solution for that.