middleware and respnse models updated
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
|
||||
class DefaultApiConfig:
|
||||
app: str
|
||||
host: str
|
||||
@@ -9,12 +8,12 @@ class DefaultApiConfig:
|
||||
@classmethod
|
||||
def as_dict(cls):
|
||||
return {
|
||||
"app": cls.app,
|
||||
"host": cls.host,
|
||||
"port": int(cls.port),
|
||||
"log_level": cls.log_level,
|
||||
"reload": bool(cls.reload),
|
||||
}
|
||||
"app": cls.app,
|
||||
"host": cls.host,
|
||||
"port": int(cls.port),
|
||||
"log_level": cls.log_level,
|
||||
"reload": bool(cls.reload),
|
||||
}
|
||||
|
||||
|
||||
class ApiStatic:
|
||||
@@ -36,7 +35,9 @@ class ApiConfig(DefaultApiConfig):
|
||||
# Api configuration
|
||||
APP_NAME = "evyos-validation-api-gateway"
|
||||
TITLE = "WAG API Validation Api Gateway"
|
||||
DESCRIPTION = "This api is serves as web validation api gateway only to evyos web services."
|
||||
DESCRIPTION = (
|
||||
"This api is serves as web validation api gateway only to evyos web services."
|
||||
)
|
||||
APP_URL = "https://www.validation.eys.gen.tr"
|
||||
# App configuration
|
||||
app = "app:app"
|
||||
@@ -55,4 +56,3 @@ class MainConfig:
|
||||
DEFAULT_TIMEZONE = "GMT+3" # Default timezone for the application
|
||||
SYSTEM_TIMEZONE = "GMT+0" # System timezone (used for internal operations)
|
||||
SUPPORTED_TIMEZONES = ["GMT+0", "GMT+3"] # List of supported timezones
|
||||
|
||||
|
||||
Reference in New Issue
Block a user