liberty-framework 6.0.59__py3-none-any.whl → 6.0.60__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- app/controllers/api_controller.py +4 -1
- app/models/apidb.py +9 -0
- app/public/frontend/assets/{index-HlYGfx6q.js → index-B5z4rVWi.js} +198 -206
- app/public/frontend/assets/{index-HlYGfx6q.js.map → index-B5z4rVWi.js.map} +1 -1
- app/public/frontend/assets/{index.es-mB7ZF8OM-f6QJp5B4.js → index.es-D6oC0jBA-Dq_n1bkL.js} +7 -7
- app/public/frontend/assets/{index.es-mB7ZF8OM-f6QJp5B4.js.map → index.es-D6oC0jBA-Dq_n1bkL.js.map} +1 -1
- app/public/frontend/assets/purify.es-BGDLgQxM-VhQmH9Os.js +3 -0
- app/public/frontend/assets/purify.es-BGDLgQxM-VhQmH9Os.js.map +1 -0
- app/public/frontend/index.html +1 -1
- app/routes/api_routes.py +23 -2
- app/services/api_rest.py +9 -0
- {liberty_framework-6.0.59.dist-info → liberty_framework-6.0.60.dist-info}/METADATA +1 -1
- {liberty_framework-6.0.59.dist-info → liberty_framework-6.0.60.dist-info}/RECORD +17 -17
- app/public/frontend/assets/purify.es-CKk_t3XZ-DHuNJQNB.js +0 -4
- app/public/frontend/assets/purify.es-CKk_t3XZ-DHuNJQNB.js.map +0 -1
- {liberty_framework-6.0.59.dist-info → liberty_framework-6.0.60.dist-info}/LICENSE +0 -0
- {liberty_framework-6.0.59.dist-info → liberty_framework-6.0.60.dist-info}/WHEEL +0 -0
- {liberty_framework-6.0.59.dist-info → liberty_framework-6.0.60.dist-info}/entry_points.txt +0 -0
- {liberty_framework-6.0.59.dist-info → liberty_framework-6.0.60.dist-info}/top_level.txt +0 -0
|
@@ -78,4 +78,7 @@ class ApiController:
|
|
|
78
78
|
return await self.apiRest.ai_welcome(req)
|
|
79
79
|
|
|
80
80
|
async def rest(self, req: Request):
|
|
81
|
-
return await self.apiRest.rest(req)
|
|
81
|
+
return await self.apiRest.rest(req)
|
|
82
|
+
|
|
83
|
+
async def version(self, req: Request):
|
|
84
|
+
return await self.apiRest.get_version(req)
|
app/models/apidb.py
CHANGED
|
@@ -144,4 +144,13 @@ ENCRYPT_ERROR_MESSAGE = "Failed to encrypt data: (sqlalchemy.dialects.postgresql
|
|
|
144
144
|
ENCRYPT_RESPONSE_DESCRIPTION = "Encryption successful"
|
|
145
145
|
ENCRYPT_RESPONSE_EXAMPLE = {
|
|
146
146
|
"encrypted": "ENC:wNMyALbXf....."
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
# Define the full response schema
|
|
150
|
+
class VersionResponse(BaseModel):
|
|
151
|
+
version: str
|
|
152
|
+
VERSION_ERROR_MESSAGE = "Failed to get the framework version"
|
|
153
|
+
VERSION_RESPONSE_DESCRIPTION = "Version retrieved successfully"
|
|
154
|
+
VERSION_RESPONSE_EXAMPLE = {
|
|
155
|
+
"version": "6.0.59"
|
|
147
156
|
}
|