group14_hackathon / app /config.py
jeevana's picture
group14 1st commit
30555e7
raw
history blame contribute delete
No virus
661 Bytes
import sys
from typing import List
from pydantic import AnyHttpUrl, BaseSettings
class Settings(BaseSettings):
API_V1_STR: str = "/api/v1"
# Meta
# BACKEND_CORS_ORIGINS is a comma-separated list of origins
# e.g: http://localhost,http://localhost:4200,http://localhost:3000
BACKEND_CORS_ORIGINS: List[AnyHttpUrl] = [
"http://localhost:3000", # type: ignore
"http://localhost:8000", # type: ignore
"https://localhost:3000", # type: ignore
"https://localhost:8000", # type: ignore
]
PROJECT_NAME: str = "Recognition API"
class Config:
case_sensitive = True
settings = Settings()