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

added custom code

parent 4b886fef
from pydantic import Field, BaseSettings
PROJECT_NAME = "candle"
PROJECT_NAME = "devalcandle"
class _Service(BaseSettings):
......
......@@ -4,6 +4,7 @@ class _APIEndpoints:
load_configuration = "/load_configuration"
preview = "/preview"
fetch_data = "/fetch_data"
test_data = "test_data"
APIEndpoints = _APIEndpoints()
......@@ -63,3 +63,11 @@ def fetch_data_in_json():
return handler.fetch_data()
except Exception as 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 @@
"frontend_base_image": "node:14.16.1",
"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