Skip to content

Commit 3428eed

Browse files
committed
update to latest version of osbot-fast-api
1 parent f85b81b commit 3428eed

File tree

6 files changed

+171
-248
lines changed

6 files changed

+171
-248
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
[submodule "modules/OSBot-Fast-API"]
22
path = modules/OSBot-Fast-API
33
url = [email protected]:owasp-sbot/OSBot-Fast-API.git
4+
[submodule "modules/OSBot-Utils"]
5+
path = modules/OSBot-Utils
6+
url = [email protected]:owasp-sbot/OSBot-Utils.git

modules/OSBot-Fast-API

Submodule OSBot-Fast-API updated 190 files

modules/OSBot-Utils

Submodule OSBot-Utils added at f425a9a

osbot_fast_api_serverless/fast_api/Serverless__Fast_API.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
from osbot_fast_api.api.Fast_API import Fast_API
2-
from mangum import Mangum
3-
from osbot_utils.utils.Env import load_dotenv
4-
from osbot_fast_api_serverless.fast_api.routes.Routes__Info import Routes__Info
1+
from osbot_fast_api.api.Fast_API import Fast_API
2+
from mangum import Mangum
3+
from osbot_utils.utils.Env import load_dotenv
4+
from osbot_fast_api_serverless.fast_api.routes.Routes__Info import Routes__Info
5+
from osbot_fast_api_serverless.fast_api.Serverless__Fast_API__Config import Serverless__Fast_API__Config
56

67

78
class Serverless__Fast_API(Fast_API):
8-
enable_cors : bool = True
9-
enable_api_key : bool = True
10-
default_routes : bool = False
9+
config: Serverless__Fast_API__Config
1110

1211
def setup(self):
1312
load_dotenv() # needed for api key support # todo: add this to Fast_API class (maybe as an top level option)
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from osbot_fast_api.api.schemas.Schema__Fast_API__Config import Schema__Fast_API__Config
2+
3+
4+
class Serverless__Fast_API__Config(Schema__Fast_API__Config):
5+
enable_cors : bool = True
6+
enable_api_key : bool = True
7+
default_routes : bool = False

0 commit comments

Comments
 (0)