We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af285b0 commit fea5794Copy full SHA for fea5794
1 file changed
osbot_fast_api/api/routes/Fast_API__Routes.py
@@ -327,7 +327,10 @@ def routes_paths(self):
327
328
def setup(self):
329
self.setup_routes()
330
- self.app.include_router(self.router, prefix=self.prefix, tags=[self.tag])
+ if self.prefix == '/': # handle scenario when we want to add routes directly to the root of the path
331
+ self.app.include_router(self.router, tags=[self.tag])
332
+ else:
333
+ self.app.include_router(self.router, prefix=self.prefix, tags=[self.tag])
334
return self
335
336
def setup_routes(self): # overwrite this to add routes to self.router
0 commit comments