Commit 3fc28bfa authored by charitha.p's avatar charitha.p

added custom code

parent 4b886fef
from pydantic import Field, BaseSettings from pydantic import Field, BaseSettings
PROJECT_NAME = "candle" PROJECT_NAME = "devalcandle"
class _Service(BaseSettings): class _Service(BaseSettings):
......
...@@ -4,6 +4,7 @@ class _APIEndpoints: ...@@ -4,6 +4,7 @@ class _APIEndpoints:
load_configuration = "/load_configuration" load_configuration = "/load_configuration"
preview = "/preview" preview = "/preview"
fetch_data = "/fetch_data" fetch_data = "/fetch_data"
test_data = "test_data"
APIEndpoints = _APIEndpoints() APIEndpoints = _APIEndpoints()
...@@ -63,3 +63,11 @@ def fetch_data_in_json(): ...@@ -63,3 +63,11 @@ def fetch_data_in_json():
return handler.fetch_data() return handler.fetch_data()
except Exception as e: except Exception as e:
logging.exception(e) logging.exception(e)
@router.get(APIEndpoints.test_data)
def fetch_data_in_json():
try:
return "Hello World"
except Exception as e:
logging.exception(e)
...@@ -6,5 +6,5 @@ ...@@ -6,5 +6,5 @@
"frontend_base_image": "node:14.16.1", "frontend_base_image": "node:14.16.1",
"environment_variables": { "environment_variables": {
}, },
"version": "1.1" "version": "1.2"
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment