Skip to content

Commit c53c60a

Browse files
committed
Merge dev into main
2 parents af285b0 + 1cfcb7e commit c53c60a

4 files changed

Lines changed: 7 additions & 4 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# OSBot-Fast-API
22

3-
![Current Release](https://img.shields.io/badge/release-v0.20.0-blue)
3+
![Current Release](https://img.shields.io/badge/release-v0.20.1-blue)
44
![Python](https://img.shields.io/badge/python-3.8+-green)
55
![FastAPI](https://img.shields.io/badge/FastAPI-0.100+-red)
66
![Type-Safe](https://img.shields.io/badge/Type--Safe-✓-brightgreen)

osbot_fast_api/api/routes/Fast_API__Routes.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,10 @@ def routes_paths(self):
327327

328328
def setup(self):
329329
self.setup_routes()
330-
self.app.include_router(self.router, prefix=self.prefix, tags=[self.tag])
330+
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])
331334
return self
332335

333336
def setup_routes(self): # overwrite this to add routes to self.router

osbot_fast_api/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v0.20.0
1+
v0.20.1

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "osbot_fast_api"
3-
version = "v0.20.0"
3+
version = "v0.20.1"
44
description = "OWASP Security Bot - Fast API"
55
authors = ["Dinis Cruz <dinis.cruz@owasp.org>"]
66
license = "MIT"

0 commit comments

Comments
 (0)