Spaces:
Sleeping
Sleeping
File size: 661 Bytes
cd75dd8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
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()
|